home.php 791 B

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