web.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Http\Controllers\SentenceInfoController;
  4. use App\Http\Controllers\WbwAnalysisController;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | contains the "web" middleware group. Now create something great!
  13. |
  14. */
  15. Route::redirect('/', '/pcd/community/list');
  16. Route::redirect('/app', '/app/pcdl/index.php');
  17. Route::redirect('/app/pcdl', '/app/pcdl/index.php');
  18. Route::get('/api/sentence/progress/image', [SentenceInfoController::class,'showprogress']);
  19. Route::get('/api/sentence/progress/daily/image', [SentenceInfoController::class,'showprogressdaily']);
  20. Route::get('/wbwanalyses', [WbwAnalysisController::class,'index']);
  21. Route::get('/export/wbw', function (){
  22. return view('export_wbw',['sentences' => []]);
  23. });
  24. Route::get('/privacy', function (){
  25. $content = file_get_contents(base_path('/documents/mobile/privacy.md'));
  26. return view('privacy',['content' => $content]);
  27. });