mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update api routes
This commit is contained in:
parent
acd7438013
commit
101676758e
2 changed files with 5 additions and 1 deletions
|
@ -311,7 +311,7 @@ class ComposeController extends Controller
|
|||
|
||||
public function searchLocation(Request $request)
|
||||
{
|
||||
abort_if(!Auth::check(), 403);
|
||||
abort_if(!$request->user(), 403);
|
||||
$this->validate($request, [
|
||||
'q' => 'required|string|max:100'
|
||||
]);
|
||||
|
|
|
@ -105,6 +105,10 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
|||
Route::group(['prefix' => 'stories'], function () use($middleware) {
|
||||
Route::get('recent', 'StoryController@recent')->middleware($middleware);
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'compose/v0'], function () use($middleware) {
|
||||
Route::get('/search/location', 'ComposeController@searchLocation')->middleware($middleware);
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'live'], function() use($middleware) {
|
||||
|
|
Loading…
Reference in a new issue