diff options
author | Matthias <ilovemilk@wusa.io> | 2020-04-11 12:57:03 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2020-04-11 12:57:03 +0300 |
commit | 5e9cebdcad048e166f9392e3aefeea1529669bc0 (patch) | |
tree | 4ff37e522cba5762369b320f0919c115393f29a8 /appinfo | |
parent | 133a820b88a78a4281e017d88d11bed169b5fdbf (diff) |
fix frontend and controller to work without services
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/info.xml | 2 | ||||
-rw-r--r-- | appinfo/routes.php | 28 |
2 files changed, 12 insertions, 18 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index 5e47879..5095179 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -37,7 +37,7 @@ <navigations> <navigation> <name>Ransomware recovery</name> - <route>ransomware_detection.recover.index</route> + <route>ransomware_detection.page.index</route> </navigation> </navigations> </info> diff --git a/appinfo/routes.php b/appinfo/routes.php index 8aa2fce..e103b07 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -10,22 +10,16 @@ */ return [ 'routes' => [ - ['name' => 'recover#index', 'url' => '/', 'verb' => 'GET'], - ['name' => 'recover#scan', 'url' => '/scan', 'verb' => 'GET'], - ], - 'ocs' => [ - // Basic controller - ['name' => 'basic#changeColorMode', 'url' => '/api/{apiVersion}/change-color-mode/{colorMode}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'basic#getColorMode', 'url' => '/api/{apiVersion}/get-color-mode', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'basic#getDebugMode', 'url' => '/api/{apiVersion}/get-debug-mode', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - // Monitoring controller - ['name' => 'monitoring#listFileOperations', 'url' => '/api/{apiVersion}/list', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'monitoring#export', 'url' => '/api/{apiVersion}/export', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'monitoring#deleteSequence', 'url' => '/api/{apiVersion}/delete-sequence/{sequence}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'monitoring#recover', 'url' => '/api/{apiVersion}/recover', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v1']], - // Scan controller - ['name' => 'scan#recover', 'url' => '/api/{apiVersion}/scan-recover', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'scan#filesToScan', 'url' => '/api/{apiVersion}/files-to-scan', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], - ['name' => 'scan#scanSequence', 'url' => '/api/{apiVersion}/scan-sequence', 'verb' => 'POST', 'requirements' => ['apiVersion' => 'v1']], + ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], + // File operation controller + ['name' => 'fileOperation#findAll', 'url' => '/api/{apiVersion}/file-operation', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], + ['name' => 'fileOperation#find', 'url' => '/api/{apiVersion}/file-operation/{id}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], + ['name' => 'fileOperation#recover', 'url' => '/api/{apiVersion}/file-operation/{id}/recover', 'verb' => 'PUT', 'requirements' => ['apiVersion' => 'v1']], + // Settings controller + ['name' => 'settings#update', 'url' => '/api/{apiVersion}/settings', 'verb' => 'PUT', 'requirements' => ['apiVersion' => 'v1']], + ['name' => 'settings#findAll', 'url' => '/api/{apiVersion}/settings', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], + // Detection controller + ['name' => 'detection#findAll', 'url' => '/api/{apiVersion}/detection', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], + ['name' => 'detection#find', 'url' => '/api/{apiVersion}/detection/{id}', 'verb' => 'GET', 'requirements' => ['apiVersion' => 'v1']], ], ]; |