forked from eahlys/EdPaste
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb.php
29 lines (26 loc) · 1.35 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
Auth::routes();
Route::get('/logout', 'Auth\LoginController@casLogout');
Route::get('/', 'PasteController@index');
Route::post('/', 'PasteController@submit');
Route::get('/retryAfterAuth', 'PasteController@retryAfterAuth');
Route::get('/{link}', 'PasteController@view')->where('link', '[a-zA-Z0-9]+');
Route::post('/{link}', 'PasteController@view')->where('link', '[a-zA-Z0-9]+');
Route::get('/edit/{link}', 'EditPasteController@index')->where('link', '[a-zA-Z0-9]+');
Route::post('/edit/{link}', 'EditPasteController@edit')->where('link', '[a-zA-Z0-9]+');
Route::get('/raw/{link}', 'PasteController@raw')->where('link', '[a-zA-Z0-9]+');
// Route::post('/{link}', 'PasteController@password')->where('link', '[a-zA-Z0-9]+');
Route::get('users/dashboard', 'UserController@dashboard');
Route::get('users/account', 'UserController@account');
Route::get('/users/delete/{link}', 'UserController@delete')->where('link', '[a-zA-Z0-9]+');
Route::post('users/account', 'UserController@editAccount');