syj.php 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. // 小程序授权
  4. Route::post('auth', 'Syj\UserController@auth');
  5. // 用户信息/修改
  6. Route::get('user', 'Syj\UserController@user');
  7. Route::put('user', 'Syj\UserController@updateUser');
  8. Route::get('group', 'Syj\GroupController@show');
  9. // 玩法一
  10. Route::post('game/draws', 'Syj\GameController@drawLeft');
  11. Route::put('game/draws/{uuid}', 'Syj\GameController@drawRight');
  12. Route::get('game/draws/{uuid}', 'Syj\GameController@getPhoto');
  13. // 玩法二
  14. Route::get('game/questions/random', 'Syj\GameController@getRandomQuestion');
  15. Route::get('game/questions', 'Syj\GameController@getQuestion');
  16. Route::post('game/answers', 'Syj\GameController@createAnswers');
  17. Route::put('game/answers/{uuid}', 'Syj\GameController@updateAnswers');
  18. Route::get('game/answers/{uuid}', 'Syj\GameController@getAnswers');
  19. Route::post('game/locations', 'Syj\GameController@createLocation');
  20. Route::put('game/locations/{uuid}', 'Syj\GameController@updateLocation');
  21. Route::get('game/locations/{uuid}', 'Syj\GameController@getLocation');