diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 21:33:47 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 21:33:47 -0500 |
| commit | c0953948d7008100ab4fcb4c5df6076ed7e69e3c (patch) | |
| tree | 26d3cbbc2386c7adb324cb6b9988de1f8a532f1c /laravel/routes | |
| parent | ed8d234975e3df79ab60cdc990f42856e5811d3f (diff) | |
| download | prosongsa-c0953948d7008100ab4fcb4c5df6076ed7e69e3c.tar.gz | |
* Routes: Create edit route
Diffstat (limited to 'laravel/routes')
| -rw-r--r-- | laravel/routes/web.php | 7 |
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(); |
