web.php 594 B

12345678910111213141516171819
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It is a breeze. Simply tell Lumen the URIs it should respond to
  9. | and give it the Closure to call when that URI is requested.
  10. |
  11. */
  12. $router->get('/', function () use ($router) {
  13. return $router->app->version().'-admin-11112222';
  14. });
  15. $router->post('/auth/login','AuthController@login');
  16. $router->post('/user','AuthController@index');