Update api routes

This commit is contained in:
Daniel Supernault 2020-02-06 17:16:59 -07:00
parent 5fe9e66dd0
commit 75c8c58695
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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::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);
});
});