about summary refs log tree commit diff
path: root/laravel/routes/web.php
diff options
context:
space:
mode:
Diffstat (limited to 'laravel/routes/web.php')
-rw-r--r--laravel/routes/web.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/laravel/routes/web.php b/laravel/routes/web.php
index 730f622..6493350 100644
--- a/laravel/routes/web.php
+++ b/laravel/routes/web.php
@@ -14,9 +14,12 @@
 Route::get('/', function () {
     return view('welcome');
 });
-Route::get('/song/{song}', 'SongController@show')->name('song.show');
+Route::post('/new/song', 'SongController@post')->name('song.postnew')/*->middleware('can:create,App\Song')*/;
 Route::get('/playlist/{playlist}', 'PlaylistController@show')->name('playlist.show');
-Route::post('/new/song', 'SongController@post')->name('song.postnew');
+Route::get('/s/{song}', 'SongController@show')->name('song.show');
+Route::post('/s/{song}', 'SongController@update')->name('song.update')->middleware('can:update,song');
+Route::get('/s/{song}/edit', 'SongController@edit')->name('song.edit')->middleware('can:update,song');
+Route::get('/song/{song}', 'SongController@oldShow')->name('song.oldShow');
 
 Auth::routes();