photo/routes/web.php

45 lines
1.7 KiB
PHP
Raw Normal View History

2019-11-08 12:08:34 +00:00
<?php
2024-08-25 08:26:29 +00:00
use Illuminate\Support\Facades\Route;
2019-11-08 12:08:34 +00:00
2024-08-25 08:26:29 +00:00
use App\Http\Controllers\{PhotoController,VideoController};
use App\Http\Controllers\Auth\LoginController;
2019-12-15 00:30:29 +00:00
2024-08-25 08:26:29 +00:00
Route::view('/home','home');
Route::get('/p/deletes/{id?}',[PhotoController::class,'deletes'])
->where('id','[0-9]+');
Route::get('/v/deletes/{id?}',[VideoController::class,'deletes'])
->where('id','[0-9]+');
Route::get('/p/duplicates/{id?}',[PhotoController::class,'duplicates'])
->where('id','[0-9]+');
Route::get('/v/duplicates/{id?}',[VideoController::class,'duplicates'])
->where('id','[0-9]+');
2019-11-09 02:52:04 +00:00
Route::view('/p/info/{po}','photo.view')
->where('po','[0-9]+');
2024-09-16 12:10:19 +00:00
Route::view('/v/info/{vo}','video.view')
->where('vo','[0-9]+');
2024-08-25 08:26:29 +00:00
Route::get('/p/thumbnail/{o}',[PhotoController::class,'thumbnail'])
->where('o','[0-9]+');
Route::get('/p/view/{o}',[PhotoController::class,'view'])
->where('o','[0-9]+');
Route::get('/v/view/{o}',[VideoController::class,'view'])
->where('o','[0-9]+');
Route::post('/p/delete/{o}',[PhotoController::class,'delete'])
->where('o','[0-9]+');
Route::post('/v/delete/{o}',[VideoController::class,'delete'])
->where('o','[0-9]+');
Route::post('/p/duplicates',[PhotoController::class,'duplicatesUpdate']);
Route::post('/v/duplicates',[VideoController::class,'duplicatesUpdate']);
Route::post('/p/deletes',[PhotoController::class,'deletesUpdate']);
Route::post('/v/deletes',[VideoController::class,'deletesUpdate']);
Route::post('/p/undelete/{o}',[PhotoController::class,'undelete'])
->where('o','[0-9]+');
Route::post('/v/undelete/{o}',[VideoController::class,'undelete'])
->where('o','[0-9]+');
Route::redirect('/','login');
Route::get('/login',[LoginController::class,'showLoginForm'])
->name('login');