[ROUTES] Allow accept-header specification during router creation
Router: - Fix calls to connect, most of them were misusing the function's params URLMapper: - Minor fixes - Documentation - Add support for accept-header specification Plugins/*: - Fix calls to connect
This commit is contained in:
committed by
Diogo Cordeiro
parent
2032c7c1f7
commit
5c0a3102ff
@@ -10,19 +10,11 @@ class NodeinfoPlugin extends Plugin
|
||||
|
||||
public function onRouterInitialized($m)
|
||||
{
|
||||
$m->connect(
|
||||
'.well-known/nodeinfo',
|
||||
array(
|
||||
'action' => 'nodeinfojrd'
|
||||
)
|
||||
);
|
||||
$m->connect('.well-known/nodeinfo',
|
||||
['action' => 'nodeinfojrd']);
|
||||
|
||||
$m->connect(
|
||||
'main/nodeinfo/2.0',
|
||||
array(
|
||||
'action' => 'nodeinfo_2_0'
|
||||
)
|
||||
);
|
||||
$m->connect('main/nodeinfo/2.0',
|
||||
['action' => 'nodeinfo_2_0']);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user