Last active
April 11, 2021 10:23
-
-
Save farindra/302ae50fe0de5132eb68b69bc53219ec to your computer and use it in GitHub Desktop.
Lumen Jwtauth Part 1 - Route Common
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* test response */ | |
$router->get('/ping', [ 'as' => 'ping', function () use ($router) { | |
return 'pong'; | |
}]); | |
/* lumen version */ | |
$router->get('/version', [ 'as' => 'version', function () use ($router) { | |
return $router->app->version(); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment