%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/diaspora/api_production/routes/api/
Upload File :
Create Path :
Current File : /var/www/html/diaspora/api_production/routes/api/v1.php

<?php

use Illuminate\Support\Facades\Route;

Route::post('login', 'AuthController@login')
     ->name('api.v1.login');

Route::post('password/reset', '\App\Http\Controllers\Auth\ResetPasswordController@reset');

Route::group(['middleware' => ['auth:api']], function () {

    Route::get('me', 'AuthController@me')
         ->name('api.v1.me');

    Route::post('changePassword', 'AuthController@changePassword')
         ->name('api.v1.changePassword');

    Route::group(['middleware' => ['role:admin']], function () {
        Route::resource('users', 'UsersController')
             ->only([
                 'index',
                 'show',
                 'store',
                 'update',
                 'destroy',
             ]);
        Route::post('users/{id}/actions/disable', 'UsersController@disable')
             ->name('api.v1.users.disable');
        Route::post('users/{id}/actions/enable', 'UsersController@enable')
             ->name('api.v1.users.enable');
        Route::post('users/{id}/actions/confirm', 'UsersController@confirm')
             ->name('api.v1.users.confirm');
        Route::post('users/{id}/actions/updatePassword', 'UsersController@updatePassword')
             ->name('api.v1.users.updatePassword');
        Route::post('users/{id}/actions/uploadImage', 'UsersController@uploadImage')
             ->name('api.v1.users.uploadImage');
        Route::get('users/actions/exportExcel', 'UsersController@exportExcel')
             ->name('api.v1.users.exportExcel');
        Route::get('users/actions/getRoles', 'UsersController@getRoles')
             ->name('api.v1.users.getRoles');
    });

    Route::get('users/actions/getAvailableUsers', 'UsersController@getAvailableUsers')
         ->name('api.v1.users.getAvailableUsers');

    Route::resource('countries', 'CountriesController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::resource('country.sections', 'CountrySectionsController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::resource('myCountrySections', 'MyCountrySectionsController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::post('myCountrySections/{section}/actions/enable', 'MyCountrySectionsController@makeVisible')
         ->name('api.v1.myCountrySections.actions.makeVisible');
    Route::post('myCountrySections/{section}/actions/disable', 'MyCountrySectionsController@makeInvisible')
         ->name('api.v1.myCountrySections.actions.makeInvisible');
    Route::post('myCountrySections/{section}/actions/moveDown', 'MyCountrySectionsController@moveDown')
         ->name('api.v1.myCountrySections.actions.moveDown');
    Route::post('myCountrySections/{section}/actions/moveUp', 'MyCountrySectionsController@moveUp')
         ->name('api.v1.myCountrySections.actions.moveUp');
    Route::get('myCountrySections/actions/getCategories', 'MyCountrySectionsController@getCategories')
         ->name('api.v1.myCountrySections.actions.getCategories');

    Route::resource('kkdSections', 'KkdSectionsController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::post('kkdSections/{section}/actions/enable', 'KkdSectionsController@makeVisible')
         ->name('api.v1.kkdSections.actions.makeVisible');
    Route::post('kkdSections/{section}/actions/disable', 'KkdSectionsController@makeInvisible')
         ->name('api.v1.kkdSections.actions.makeInvisible');
    Route::post('kkdSections/{section}/actions/moveDown', 'KkdSectionsController@moveDown')
         ->name('api.v1.kkdSections.actions.moveDown');
    Route::post('kkdSections/{section}/actions/moveUp', 'KkdSectionsController@moveUp')
         ->name('api.v1.kkdSections.actions.moveUp');

    Route::post('country/{country}/sections/{section}/actions/makeVisible', 'CountrySectionsController@makeVisible')
         ->name('api.v1.country.sections.actions.makeVisible');
    Route::post('country/{country}/sections/{section}/actions/makeInvisible', 'CountrySectionsController@makeInvisible')
         ->name('api.v1.country.sections.actions.makeInvisible');
    Route::post('country/{country}/sections/{section}/actions/moveUp', 'CountrySectionsController@moveUp')
         ->name('api.v1.country.sections.actions.moveUp');
    Route::post('country/{country}/sections/{section}/actions/moveDown', 'CountrySectionsController@moveDown')
         ->name('api.v1.country.sections.actions.moveDown');

    Route::get('countries/actions/getTravelCautions', 'CountriesController@getTravelCautions')
         ->name('api.v1.countries.getTravelCautions');
    Route::get('countries/actions/getEnabled', 'CountriesController@getEnabled')
         ->name('api.v1.countries.getEnabled');
    Route::post('countries/{id}/actions/disable', 'CountriesController@disable')
         ->name('api.v1.countries.disable');
    Route::post('countries/{id}/actions/enable', 'CountriesController@enable')
         ->name('api.v1.countries.enable');

    Route::resource('categories', 'CategoriesController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::post('categories/{category}/actions/archive', 'CategoriesController@archive')
         ->name('api.v1.categories.actions.archive');
    Route::post('categories/{category}/actions/unArchive', 'CategoriesController@unArchive')
         ->name('api.v1.categories.actions.unArchive');

    Route::resource('posts', 'PostsController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::get('categories/actions/getAvailableCategories', 'CategoriesController@getAvailableCategories')
         ->name('api.v1.users.getAvailableCategories');

    Route::post('posts/{post}/actions/uploadImage', 'PostsController@uploadImage')
         ->name('api.v1.posts.uploadImage');
    Route::post('posts/{post}/actions/uploadFeaturedImage', 'PostsController@uploadFeaturedImage')
         ->name('api.v1.posts.uploadFeaturedImage');
    Route::delete('posts/{post}/actions/deleteImage/{media}', 'PostsController@deleteImage')
         ->name('api.v1.posts.deleteImage');
    Route::post('posts/{post}/actions/publish', 'PostsController@publish')
         ->name('api.v1.posts.publish');
    Route::post('posts/{post}/actions/featureMedia/{media}', 'PostsController@featureMedia')
         ->name('api.v1.posts.featureMedia');
    Route::post('posts/{post}/actions/archive', 'PostsController@archive')
         ->name('api.v1.posts.archive');
    Route::post('posts/{post}/actions/unArchive', 'PostsController@unArchive')
         ->name('api.v1.posts.unArchive');

    Route::get('posts/actions/getVideoTypes', 'PostsController@getVideoTypes')
         ->name('api.v1.posts.getVideoTypes');

    Route::resource('members', 'MembersController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::get('members/actions/getVideoTypes', 'MembersController@getVideoTypes')
         ->name('api.v1.members.getVideoTypes');

    Route::post('members/{member}/actions/publish', 'MembersController@publish')
         ->name('api.v1.members.publish');
    Route::post('members/{member}/actions/archive', 'MembersController@archive')
         ->name('api.v1.members.archive');
    Route::post('members/{member}/actions/unArchive', 'MembersController@unArchive')
         ->name('api.v1.members.unArchive');
    Route::post('members/{member}/actions/updateAvatar', 'MembersController@updateAvatar')
         ->name('api.v1.members.updateAvatar');

    Route::resource('myCountryCategories', 'MyCountryCategoriesController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::resource('events', 'EventsController')
         ->only([
             'index',
             'show',
             'store',
             'update',
         ]);

    Route::post('events/{event}/actions/archive', 'EventsController@archive')
         ->name('api.v1.events.archive');
    Route::post('events/{event}/actions/unArchive', 'EventsController@unArchive')
         ->name('api.v1.events.unArchive');
    Route::post('events/{event}/actions/publish', 'EventsController@publish')
         ->name('api.v1.events.publish');
    Route::get('events/actions/getModules', 'EventsController@getModules')
         ->name('api.v1.events.getModules');
    Route::get('events/actions/getVideoTypes', 'EventsController@getVideoTypes')
         ->name('api.v1.events.getVideoTypes');
    Route::post('events/{event}/actions/uploadFeaturedImage', 'EventsController@uploadFeaturedImage')
         ->name('api.v1.events.uploadFeaturedImage');

});

Zerion Mini Shell 1.0