Skip to content

Commit

Permalink
add interface for named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
BibaltiK committed Dec 5, 2023
1 parent a067c1e commit 2e5546a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
*/

return static function (Application $app, MiddlewareFactory $factory, ContainerInterface $container): void {
$app->get('/api/ping', PingHandler::class, RouteName::PING_HANDLER);
$app->get('/api/ping', PingHandler::class, RouteName::HANDLER_PING);
$app->get('/api/account/list/all', ListAllAccountsHandler::class, ListAllAccountsHandler::class);
};
2 changes: 1 addition & 1 deletion src/Core/Config/RouteName.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

interface RouteName
{
public const PING_HANDLER = 'handler.ping';
public const HANDLER_PING = 'handler.ping';
}

0 comments on commit 2e5546a

Please sign in to comment.