diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 6d54f10b..c110b3db 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -35,4 +35,9 @@ class AccountController extends Controller { return Redirect::to(Config::get('poniverse.urls')['register']); } + + public function getNotifications() + { + return View::make('shared.null'); + } } diff --git a/app/Http/routes.php b/app/Http/routes.php index ab05a173..3463c36c 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -65,6 +65,8 @@ Route::get('playlist/{id}-{slug}', 'PlaylistsController@getPlaylist'); Route::get('p{id}', 'PlaylistsController@getShortlink')->where('id', '\d+'); Route::get('p{id}/dl.{extension}', 'PlaylistsController@getDownload' ); +Route::get('notifications', 'AccountController@getNotifications'); + Route::group(['prefix' => 'api/v1', 'middleware' => 'json-exceptions'], function() { diff --git a/public/templates/notifications/index.html b/public/templates/notifications/index.html index e69de29b..d5a9432a 100644 --- a/public/templates/notifications/index.html +++ b/public/templates/notifications/index.html @@ -0,0 +1,4 @@ +
{{ notification.text }}
+