about summary refs log tree commit diff
path: root/laravel/routes/web.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2020-09-21 21:15:18 -0400
committerZach DeCook <zachdecook@librem.one>2020-09-21 21:15:18 -0400
commit247c96763c65f83fd6c28e591a6e8fe3e62780a1 (patch)
tree353217bbdc9d2b99e6efe0232ac24e66a532c2b7 /laravel/routes/web.php
parentbfdedb8210222ae44dc9b7a7136f8774a5bc76e4 (diff)
downloadprosongsa-247c96763c65f83fd6c28e591a6e8fe3e62780a1.tar.gz
* Feature: Add to "favorites" playlist
Diffstat (limited to 'laravel/routes/web.php')
-rw-r--r--laravel/routes/web.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/laravel/routes/web.php b/laravel/routes/web.php
index 5e5561e..c783313 100644
--- a/laravel/routes/web.php
+++ b/laravel/routes/web.php
@@ -16,6 +16,7 @@ Route::get('/', function () {
 })->name('song.list');
 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('/playlist/{playlist}/{song}', 'PlaylistController@post')->name('playlist.post');
 Route::get('/s/{song}', 'SongController@show')->name('song.show');
 Route::get('/s/{song}/suggested/{from}', 'SongController@suggested')->name('song.suggested');
 Route::post('/s/{song}', 'SongController@update')->name('song.update')->middleware('can:update,song');