Browse Source

Merge pull request #4475 from nanaya/notification-api

Enable notification API
pull/4492/head
bakaneko 3 weeks ago
parent
commit
b9a3ad1728
No account linked to committer's email address
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      routes/web.php

+ 7
- 0
routes/web.php View File

@@ -362,6 +362,13 @@ Route::group(['as' => 'api.', 'prefix' => 'api', 'middleware' => ['auth:api', 'r
362 362
         Route::get('me', 'UsersController@me');
363 363
         //  GET /api/v2/me/download-quota-check
364 364
         Route::get('me/download-quota-check', 'HomeController@downloadQuotaCheck');
365
+
366
+        // Notifications
367
+        //  GET /api/v2/notifications
368
+        Route::resource('notifications', 'NotificationsController', ['only' => ['index']]);
369
+        //  POST /api/v2/notifications/mark-read
370
+        Route::post('notifications/mark-read', 'NotificationsController@markRead')->name('notifications.mark-read');
371
+
365 372
         //  GET /api/v2/rankings/:mode/:type
366 373
         Route::get('rankings/{mode}/{type}', 'RankingController@index');
367 374
 

Loading…
Cancel
Save