%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

use Illuminate\Support\Facades\Route;

Route::post('devices', 'AppController@storeDevice')
     ->name('api.app.v1.devices');

Route::post('register', 'AppController@register')
     ->name('api.app.v1.register');

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

Route::post('fbLogin', 'AppController@fbLogin')
     ->name('api.app.v1.fbLogin');

Route::post('googleLogin', 'AppController@googleLogin')
     ->name('api.app.v1.googleLogin');

Route::get('aboutUs', 'AppController@aboutUs')
     ->name('api.app.v1.aboutUs');

Route::get('logout', 'AppController@logout')
     ->name('api.app.v1.logout');

Route::get('getCountries', 'AppController@getCountries')
     ->name('api.app.v1.getCountries');

Route::post('forgotPassword', '\App\Http\Controllers\Auth\ForgotPasswordController@sendResetLinkEmail')
     ->name('api.app.v1.forgotPassword');

Route::group(['middleware' => ['auth:api', 'uuid']], function () {
    Route::get('me', 'AppController@me')
         ->name('api.app.v1.me');

    Route::post('updateProfile', 'AppController@updateProfile')
         ->name('api.app.v1.updateProfile');

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

    Route::post('devices/actions/updateLanguage', 'AppController@updateLanguage')
         ->name('api.app.v1.devices.actions.updateLanguage');

    Route::post('devices/actions/updateConfiguration', 'AppController@updateConfiguration')
         ->name('api.app.v1.devices.actions.updateConfiguration');

    Route::get('countries', 'AppController@countries')
         ->name('api.app.v1.countries');

    Route::get('allCountries', 'AppController@getAllCountries')
         ->name('api.app.v1.getAllCountries');

    Route::get('countries/{country}', 'AppController@countryDetails')
         ->name('api.app.v1.countryDetails');

    Route::get('countries/{country}/sections', 'AppController@sections')
         ->name('api.app.v1.countries.sections');

    Route::get('countries/{country}/sections/{section}', 'AppController@sectionDetails')
         ->name('api.app.v1.countries.sectionDetails');

    Route::get('countries/{country}/posts', 'AppController@getPostByCountryId')
         ->name('api.app.v1.countries.posts');

    Route::get('categories', 'AppController@categories')
         ->name('api.app.v1.categories');

    Route::get('categories/{category}/posts', 'AppController@categoryPosts')
         ->name('api.app.v1.categories.posts');

    Route::get('categories/{category}/actions/getPostsBySlug', 'AppController@categorySlugPosts')
         ->name('api.app.v1.categories.categorySlugPosts');

    Route::post('categories/actions/enableCategoryConfiguration', 'AppController@enableCategoryConfiguration')
         ->name('api.app.v1.categories.actions.enableCategoryConfiguration');

    Route::post('categories/actions/disableCategoryConfiguration', 'AppController@disableCategoryConfiguration')
         ->name('api.app.v1.categories.actions.disableCategoryConfiguration');

    Route::get('posts/{post}', 'AppController@postDetails')
         ->name('api.app.v1.posts.details');

    Route::get('posts/{post}', 'AppController@postDetails')
         ->name('api.app.v1.posts.details');

    Route::get('posts/actions/latestPosts', 'AppController@latestPosts')
         ->name('api.app.v1.posts.actions.latestPosts');

    Route::get('posts/actions/mostReadPosts', 'AppController@mostReadPosts')
         ->name('api.app.v1.posts.actions.mostReadPosts');

    Route::get('posts/actions/recommendedPosts', 'AppController@recommendedPosts')
         ->name('api.app.v1.posts.actions.recommendedPosts');

    Route::get('posts/actions/searchPosts', 'AppController@searchPosts')
         ->name('api.app.v1.posts.actions.searchPosts');

    Route::get('posts/actions/getHomePosts', 'AppController@getHomePosts')
         ->name('api.app.v1.posts.actions.getHomePosts');

    Route::post('posts/{post}/actions/markNotificationAsRead', 'AppController@markPostNotificationAsRead')
         ->name('api.app.v1.events.markPostNotificationAsRead');

    Route::get('myCountry', 'AppController@myCountry')
         ->name('api.app.v1.myCountry');

    Route::get('myCountry/{id}', 'AppController@myCountryDetails')
         ->name('api.app.v1.myCountry.details');

    Route::get('myCountry/actions/categories', 'AppController@getMyCountryCategories')
         ->name('api.app.v1.myCountry.actions.getCategories');

    Route::get('myCountry/{category}/actions/sections', 'AppController@getMyCountrySectionsByCategory')
         ->name('api.app.v1.myCountry.actions.getMyCountrySectionsByCategory');

    Route::get('kkd', 'AppController@kkd')
         ->name('api.app.v1.myCountry');

    Route::get('kkd/{id}', 'AppController@kkdDetails')
         ->name('api.app.v1.myCountry.details');

    Route::get('members', 'AppController@getMembers')
         ->name('api.app.v1.members');

    Route::get('members/{member}', 'AppController@getMemberDetails')
         ->name('api.app.v1.members.details');

    Route::get('events', 'AppController@getEvents')
         ->name('api.app.v1.events.events');
    Route::get('events/{event}', 'AppController@getEventDetails')
         ->name('api.app.v1.events.getEventDetails');
    Route::get('events/{event}/actions/getNotifications', 'AppController@getNotifications')
         ->name('api.app.v1.events.getNotifications');
    Route::get('events/{event}/actions/removeNotifications', 'AppController@removeNotifications')
         ->name('api.app.v1.events.removeNotifications');
    Route::post('events/{event}/actions/markNotificationAsRead', 'AppController@markEventNotificationAsRead')
         ->name('api.app.v1.events.markEventNotificationAsRead');

    Route::get('notifications', 'AppController@notifications')
         ->name('api.app.v1.notifications');
    Route::post('notifications/{notification}/actions/markAsRead', 'AppController@markAsRead')
         ->name('api.app.v1.notifications.markAsRead');
    Route::post('notifications/actions/markAllAsRead', 'AppController@markAllAsRead')
         ->name('api.app.v1.notifications.markAllAsRead');
    Route::get('notifications/actions/getBadge', 'AppController@getBadge')
         ->name('api.app.v1.notifications.getBadge');

});

Route::get('test', 'AppController@test')
     ->name('api.app.v1.test');

Zerion Mini Shell 1.0