Update api routes

This commit is contained in:
Daniel Supernault 2024-09-18 02:32:07 -06:00
parent 33621dd680
commit 669f8b280b
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -1,7 +1,5 @@
<?php
use Illuminate\Http\Request;
use App\Http\Middleware\DeprecatedEndpoint;
use App\Http\Controllers\Api\V1\TagsController;
$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::group(['prefix' => 'directory'], function () use($middleware) {
Route::group(['prefix' => 'directory'], function () {
Route::get('listing', 'PixelfedDirectoryController@get');
});
Route::group(['prefix' => 'auth'], function () use($middleware) {
Route::group(['prefix' => 'auth'], function () {
Route::get('iarpfc', 'Api\ApiV1Dot1Controller@inAppRegistrationPreFlightCheck');
Route::post('iar', 'Api\ApiV1Dot1Controller@inAppRegistration');
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::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('stream/edit', 'LiveStreamController@editStream')->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::group(['prefix' => 'landing/v1'], function() use($middleware) {
Route::group(['prefix' => 'landing/v1'], function () {
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::group(['prefix' => 'directory'], function () use($middleware) {
Route::group(['prefix' => 'directory'], function () {
Route::get('listing', 'PixelfedDirectoryController@get');
});