2
0

web.php 1.0 KB

12345678910111213141516171819202122232425262728
  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('/', '/app/pcdl/index.php');
  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. });