src/Controller.php
public static function apiRoutes($disableReactUI)
    {
        // REST API for Rect-UI
        if (!$disableReactUI) {
            Route::get('ui', '\\Vsch\\TranslationManager\\Controller@getUI');
            Route::get('ui/{all?}', '\\Vsch\\TranslationManager\\Controller@getUI')->where('all', '.*');

            Route::get('api/app-settings', '\\Vsch\\TranslationManager\\Controller@getAppSettings');
            Route::post('api/app-settings', '\\Vsch\\TranslationManager\\Controller@postAppSettings');

            Route::get('api/translations/{group}/{locale}', '\\Vsch\\TranslationManager\\Controller@getTranslations');
            Route::post('api/search', '\\Vsch\\TranslationManager\\Controller@apiSearch');
            Route::post('api/summary', '\\Vsch\\TranslationManager\\Controller@apiSummary');
            Route::post('api/translation-table/{group}', '\\Vsch\\TranslationManager\\Controller@apiTranslationTable');
            Route::post('api/user-list', '\\Vsch\\TranslationManager\\Controller@apiUserList');
            Route::post('api/mismatches', '\\Vsch\\TranslationManager\\Controller@apiMismatches');

            Route::post('api/delete-suffixed-keys/{group}', '\\Vsch\\TranslationManager\\Controller@apiDeleteSuffixedKeys');
            Route::post('api/add-suffixed-keys/{group}', '\\Vsch\\TranslationManager\\Controller@apiAddSuffixedKeys');
            Route::post('api/key-references/{group}/{key?}', '\\Vsch\\TranslationManager\\Controller@apiKeyReferences');
            Route::post('api/delete-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiDeleteGroup');
            Route::post('api/find-references', '\\Vsch\\TranslationManager\\Controller@apiFindReferences');
            Route::post('api/clear-ui-settings', '\\Vsch\\TranslationManager\\Controller@postClearUISettings');

            Route::post('api/publish-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiPublishGroup');
            Route::post('api/import-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiImportGroup');
            Route::get('api/zipped-translations/{group?}', '\\Vsch\\TranslationManager\\Controller@apiZippedTranslations');

            // TODO: convert to Rest API
            Route::get('api/app-settings-json', '\\Vsch\\TranslationManager\\Controller@getAppSettingsJson');
            Route::post('api/missing-keys', '\\Vsch\\TranslationManager\\Controller@postMissingKeys');

            Route::post('api/trans-filters', '\\Vsch\\TranslationManager\\Controller@apiTransFilters');

            // shared web and api urls 
            // TODO: migrate to Rest Controller for implementation
            Route::post('api/delete/{group}/{key}', '\\Vsch\\TranslationManager\\Controller@postDelete');
            Route::post('api/edit/{group}', '\\Vsch\\TranslationManager\\Controller@postEdit');
            Route::post('api/undelete/{group}/{key}', '\\Vsch\\TranslationManager\\Controller@postUndelete');
            Route::post('api/user_locales', '\\Vsch\\TranslationManager\\Controller@postUserLocales');
        }
    }
public static function apiRoutes($disableReactUI)
    {
        // REST API for Rect-UI
        if (!$disableReactUI) {
            Route::get('ui', '\\Vsch\\TranslationManager\\Controller@getUI');
            Route::get('ui/{all?}', '\\Vsch\\TranslationManager\\Controller@getUI')->where('all', '.*');

            Route::get('api/app-settings', '\\Vsch\\TranslationManager\\Controller@getAppSettings');
            Route::post('api/app-settings', '\\Vsch\\TranslationManager\\Controller@postAppSettings');

            Route::get('api/translations/{group}/{locale}', '\\Vsch\\TranslationManager\\Controller@getTranslations');
            Route::post('api/search', '\\Vsch\\TranslationManager\\Controller@apiSearch');
            Route::post('api/summary', '\\Vsch\\TranslationManager\\Controller@apiSummary');
            Route::post('api/translation-table/{group}', '\\Vsch\\TranslationManager\\Controller@apiTranslationTable');
            Route::post('api/user-list', '\\Vsch\\TranslationManager\\Controller@apiUserList');
            Route::post('api/mismatches', '\\Vsch\\TranslationManager\\Controller@apiMismatches');

            Route::post('api/delete-suffixed-keys/{group}', '\\Vsch\\TranslationManager\\Controller@apiDeleteSuffixedKeys');
            Route::post('api/add-suffixed-keys/{group}', '\\Vsch\\TranslationManager\\Controller@apiAddSuffixedKeys');
            Route::post('api/key-references/{group}/{key?}', '\\Vsch\\TranslationManager\\Controller@apiKeyReferences');
            Route::post('api/delete-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiDeleteGroup');
            Route::post('api/find-references', '\\Vsch\\TranslationManager\\Controller@apiFindReferences');
            Route::post('api/clear-ui-settings', '\\Vsch\\TranslationManager\\Controller@postClearUISettings');

            Route::post('api/publish-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiPublishGroup');
            Route::post('api/import-group/{group}', '\\Vsch\\TranslationManager\\Controller@apiImportGroup');
            Route::get('api/zipped-translations/{group?}', '\\Vsch\\TranslationManager\\Controller@apiZippedTranslations');

            // TODO: convert to Rest API
            Route::get('api/app-settings-json', '\\Vsch\\TranslationManager\\Controller@getAppSettingsJson');
            Route::post('api/missing-keys', '\\Vsch\\TranslationManager\\Controller@postMissingKeys');

            Route::post('api/trans-filters', '\\Vsch\\TranslationManager\\Controller@apiTransFilters');

            // shared web and api urls 
            // TODO: migrate to Rest Controller for implementation
            Route::post('api/delete/{group}/{key}', '\\Vsch\\TranslationManager\\Controller@postDelete');
            Route::post('api/edit/{group}', '\\Vsch\\TranslationManager\\Controller@postEdit');
            Route::post('api/undelete/{group}/{key}', '\\Vsch\\TranslationManager\\Controller@postUndelete');
            Route::post('api/user_locales', '\\Vsch\\TranslationManager\\Controller@postUserLocales');
        }
    }
/*
React UI - API