mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-18 19:13:17 +00:00
Update api routes
This commit is contained in:
parent
33621dd680
commit
669f8b280b
1 changed files with 33 additions and 34 deletions
|
@ -1,7 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use App\Http\Middleware\DeprecatedEndpoint;
|
|
||||||
use App\Http\Controllers\Api\V1\TagsController;
|
use App\Http\Controllers\Api\V1\TagsController;
|
||||||
|
|
||||||
$middleware = ['auth:api', 'validemail'];
|
$middleware = ['auth:api', 'validemail'];
|
||||||
|
@ -255,11 +253,11 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('posts/network/trending', 'DiscoverController@discoverNetworkTrending')->middleware($middleware);
|
Route::get('posts/network/trending', 'DiscoverController@discoverNetworkTrending')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'directory'], function () use($middleware) {
|
Route::group(['prefix' => 'directory'], function () {
|
||||||
Route::get('listing', 'PixelfedDirectoryController@get');
|
Route::get('listing', 'PixelfedDirectoryController@get');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'auth'], function () use($middleware) {
|
Route::group(['prefix' => 'auth'], function () {
|
||||||
Route::get('iarpfc', 'Api\ApiV1Dot1Controller@inAppRegistrationPreFlightCheck');
|
Route::get('iarpfc', 'Api\ApiV1Dot1Controller@inAppRegistrationPreFlightCheck');
|
||||||
Route::post('iar', 'Api\ApiV1Dot1Controller@inAppRegistration');
|
Route::post('iar', 'Api\ApiV1Dot1Controller@inAppRegistration');
|
||||||
Route::post('iarc', 'Api\ApiV1Dot1Controller@inAppRegistrationConfirm');
|
Route::post('iarc', 'Api\ApiV1Dot1Controller@inAppRegistrationConfirm');
|
||||||
|
@ -277,9 +275,10 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::post('status/create', 'Api\ApiV1Dot1Controller@statusCreate')->middleware($middleware);
|
Route::post('status/create', 'Api\ApiV1Dot1Controller@statusCreate')->middleware($middleware);
|
||||||
|
Route::get('nag/state', 'Api\ApiV1Dot1Controller@nagState');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'live'], function() use($middleware) {
|
Route::group(['prefix' => 'live'], function () {
|
||||||
// Route::post('create_stream', 'LiveStreamController@createStream')->middleware($middleware);
|
// Route::post('create_stream', 'LiveStreamController@createStream')->middleware($middleware);
|
||||||
// Route::post('stream/edit', 'LiveStreamController@editStream')->middleware($middleware);
|
// Route::post('stream/edit', 'LiveStreamController@editStream')->middleware($middleware);
|
||||||
// Route::get('active/list', 'LiveStreamController@getActiveStreams')->middleware($middleware);
|
// Route::get('active/list', 'LiveStreamController@getActiveStreams')->middleware($middleware);
|
||||||
|
@ -318,7 +317,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('instance/stats', 'Api\AdminApiController@getAllStats')->middleware($middleware);
|
Route::get('instance/stats', 'Api\AdminApiController@getAllStats')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'landing/v1'], function() use($middleware) {
|
Route::group(['prefix' => 'landing/v1'], function () {
|
||||||
Route::get('directory', 'LandingController@getDirectoryApi');
|
Route::get('directory', 'LandingController@getDirectoryApi');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -376,7 +375,7 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('posts/hashtags', 'DiscoverController@trendingHashtags')->middleware($middleware);
|
Route::get('posts/hashtags', 'DiscoverController@trendingHashtags')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::group(['prefix' => 'directory'], function () use($middleware) {
|
Route::group(['prefix' => 'directory'], function () {
|
||||||
Route::get('listing', 'PixelfedDirectoryController@get');
|
Route::get('listing', 'PixelfedDirectoryController@get');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue