1
0
Fork 0
mirror of https://github.com/friendica/friendica-directory synced 2024-11-16 00:29:24 +01:00

Add names to routes we need to get URLs for

This commit is contained in:
Hypolite Petovan 2020-06-13 13:17:19 -04:00
parent f47f263fc3
commit 230ceeab29

View file

@ -10,7 +10,7 @@ use Slim\Http\Response;
*/ */
$app->get('/servers/surprise', \Friendica\Directory\Routes\Http\Surprise::class); $app->get('/servers/surprise', \Friendica\Directory\Routes\Http\Surprise::class);
$app->get('/servers', \Friendica\Directory\Routes\Web\Servers::class); $app->get('/servers', \Friendica\Directory\Routes\Web\Servers::class)->setName('servers');
$app->get('/search[/{account_type}]', function (Request $request, Response $response, $args) { $app->get('/search[/{account_type}]', function (Request $request, Response $response, $args) {
if ($request->getAttribute('negotiation')->getMediaType() == 'application/json') { if ($request->getAttribute('negotiation')->getMediaType() == 'application/json') {
@ -24,7 +24,7 @@ $app->get('/search[/{account_type}]', function (Request $request, Response $resp
$app->post('/msearch', \Friendica\Directory\Routes\Http\MatchSearch::class); $app->post('/msearch', \Friendica\Directory\Routes\Http\MatchSearch::class);
$app->get('/stats', \Friendica\Directory\Routes\Web\Statistics::class); $app->get('/stats', \Friendica\Directory\Routes\Web\Statistics::class)->setName('stats');
$app->get('/submit', \Friendica\Directory\Routes\Http\Submit::class); $app->get('/submit', \Friendica\Directory\Routes\Http\Submit::class);