mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update api routes
This commit is contained in:
parent
5fe9e66dd0
commit
75c8c58695
1 changed files with 3 additions and 1 deletions
|
@ -78,5 +78,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::delete('v1/delete/{id}', 'StoryController@apiV1Delete')->middleware(array_merge($middleware, ['throttle:maxStoryDeletePerDay,1440']));
|
Route::delete('v1/delete/{id}', 'StoryController@apiV1Delete')->middleware(array_merge($middleware, ['throttle:maxStoryDeletePerDay,1440']));
|
||||||
Route::post('v1/viewed', 'StoryController@apiV1Viewed');
|
Route::post('v1/viewed', 'StoryController@apiV1Viewed');
|
||||||
});
|
});
|
||||||
Route::get('/api/v2/search', 'Api\ApiV1Controller@searchV2')->middlware($middleware);
|
Route::group(['prefix' => 'v2'], function() use($middleware) {
|
||||||
|
Route::get('search', 'Api\ApiV1Controller@searchV2')->middleware($middleware);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue