home.php 701 B

1234567891011121314151617181920
  1. <?php
  2. Route::get('Index/importTimu', 'IndexController@importTimu');
  3. //用户登陆页面
  4. Route::get('User/Login', 'UserController@Login');
  5. //用户登陆接口
  6. Route::post('User/Login', 'UserController@doLogin');
  7. //用户主页页面
  8. Route::get('User/Index', 'UserController@Index');
  9. //用户绑定接口
  10. Route::post('User/Bind', 'UserController@Bind');
  11. //获取用户信息接口
  12. Route::get('User/Info', 'UserController@Info');
  13. //加入房间
  14. Route::post('Game/Join', 'GameController@Join');
  15. //退出房间
  16. Route::post('Game/Quit', 'GameController@Quit');
  17. //获取题目接口
  18. Route::get('Game/Question', 'GameController@Question');
  19. //答题接口
  20. Route::post('Game/Answer', 'GameController@Answer');