Update api routes

This commit is contained in:
Daniel Supernault 2022-09-06 22:52:22 -06:00
parent 3306ca3a5b
commit d1c05f080d
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -100,8 +100,17 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
Route::group(['prefix' => 'v1.1'], function() use($middleware) {
Route::post('report', 'Api\ApiV1Dot1Controller@report')->middleware($middleware);
Route::delete('accounts/avatar', 'Api\ApiV1Dot1Controller@deleteAvatar')->middleware($middleware);
Route::get('direct/thread', 'DirectMessageController@thread')->middleware($middleware);
Route::post('direct/thread/send', 'DirectMessageController@create')->middleware($middleware);
Route::group(['prefix' => 'direct'], function () use($middleware) {
Route::get('thread', 'DirectMessageController@thread')->middleware($middleware);
Route::post('thread/send', 'DirectMessageController@create')->middleware($middleware);
Route::delete('thread/message', 'DirectMessageController@delete')->middleware($middleware);
Route::post('thread/mute', 'DirectMessageController@mute')->middleware($middleware);
Route::post('thread/unmute', 'DirectMessageController@unmute')->middleware($middleware);
Route::post('thread/media', 'DirectMessageController@mediaUpload')->middleware($middleware);
Route::post('thread/read', 'DirectMessageController@read')->middleware($middleware);
Route::post('lookup', 'DirectMessageController@composeLookup')->middleware($middleware);
});
Route::group(['prefix' => 'stories'], function () use($middleware) {
Route::get('recent', 'StoryController@recent')->middleware($middleware);