photo/routes/web.php

33 lines
1.7 KiB
PHP
Raw Normal View History

2019-11-08 12:08:34 +00:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
2019-11-23 01:51:30 +00:00
Route::get('/home','HomeController@home');
2019-11-09 02:52:04 +00:00
Route::get('/p/deletes/{id?}','PhotoController@deletes')->where('id','[0-9]+');
Route::get('/v/deletes/{id?}','VideoController@deletes')->where('id','[0-9]+');
Route::get('/p/duplicates/{id?}','PhotoController@duplicates')->where('id','[0-9]+');
Route::get('/v/duplicates/{id?}','VideoController@duplicates')->where('id','[0-9]+');
2019-12-15 00:30:29 +00:00
2019-12-14 11:29:54 +00:00
Route::get('/p/info/{o}','PhotoController@info')->where('o','[0-9]+');
2019-12-15 12:34:42 +00:00
Route::get('/v/info/{o}','VideoController@info')->where('o','[0-9]+');
2019-12-15 00:30:29 +00:00
Route::get('/p/thumbnail/{o}','PhotoController@thumbnail')->where('o','[0-9]+');
2019-12-14 11:29:54 +00:00
Route::get('/p/view/{o}','PhotoController@view')->where('o','[0-9]+');
2019-12-15 12:34:42 +00:00
Route::get('/v/view/{o}','VideoController@view')->where('o','[0-9]+');
2019-11-09 02:52:04 +00:00
2019-12-15 00:30:29 +00:00
Route::post('/p/delete/{o}','PhotoController@delete')->where('o','[0-9]+');
2019-12-15 12:34:42 +00:00
Route::post('/v/delete/{o}','VideoController@delete')->where('o','[0-9]+');
2019-11-09 02:52:04 +00:00
Route::post('/p/duplicates','PhotoController@duplicatesUpdate');
Route::post('/v/duplicates','VideoController@duplicatesUpdate');
Route::post('/p/deletes','PhotoController@deletesUpdate');
Route::post('/v/deletes','VideoController@deletesUpdate');
2019-12-15 00:30:29 +00:00
Route::post('/p/undelete/{o}','PhotoController@undelete')->where('o','[0-9]+');
2019-12-15 12:34:42 +00:00
Route::post('/v/undelete/{o}','VideoController@undelete')->where('o','[0-9]+');