|
69 | 69 |
|
70 | 70 | Route::get('/resources', [ResourcesController::class, 'resources']);
|
71 | 71 |
|
72 |
| - Route::get('/services', [ServicesController::class, 'services']); |
73 |
| - Route::post('/services/public', [ServicesController::class, 'create_public_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
74 |
| - Route::post('/services/private-github-app', [ServicesController::class, 'create_private_gh_app_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
75 |
| - Route::post('/services/private-deploy-key', [ServicesController::class, 'create_private_deploy_key_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
76 |
| - Route::post('/services/dockerfile', [ServicesController::class, 'create_dockerfile_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
77 |
| - Route::post('/services/dockerimage', [ServicesController::class, 'create_dockerimage_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
78 |
| - Route::post('/services/dockercompose', [ServicesController::class, 'create_dockercompose_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
79 |
| - |
80 |
| - Route::get('/services/{uuid}', [ServicesController::class, 'application_by_uuid']); |
81 |
| - Route::patch('/services/{uuid}', [ServicesController::class, 'update_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
82 |
| - Route::delete('/services/{uuid}', [ServicesController::class, 'delete_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
83 |
| - |
84 |
| - Route::get('/services/{uuid}/envs', [ServicesController::class, 'envs']); |
85 |
| - Route::post('/services/{uuid}/envs', [ServicesController::class, 'create_env'])->middleware([IgnoreReadOnlyApiToken::class]); |
86 |
| - Route::patch('/services/{uuid}/envs/bulk', [ServicesController::class, 'create_bulk_envs'])->middleware([IgnoreReadOnlyApiToken::class]); |
87 |
| - Route::patch('/services/{uuid}/envs', [ServicesController::class, 'update_env_by_uuid']); |
88 |
| - Route::delete('/services/{uuid}/envs/{env_uuid}', [ServicesController::class, 'delete_env_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
89 |
| - |
90 |
| - Route::match(['get', 'post'], '/services/{uuid}/start', [ServicesController::class, 'action_deploy'])->middleware([IgnoreReadOnlyApiToken::class]); |
91 |
| - Route::match(['get', 'post'], '/services/{uuid}/restart', [ServicesController::class, 'action_restart'])->middleware([IgnoreReadOnlyApiToken::class]); |
92 |
| - Route::match(['get', 'post'], '/services/{uuid}/stop', [ServicesController::class, 'action_stop'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 72 | + Route::get('/applications', [ApplicationsController::class, 'applications']); |
| 73 | + Route::post('/applications/public', [ApplicationsController::class, 'create_public_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 74 | + Route::post('/applications/private-github-app', [ApplicationsController::class, 'create_private_gh_app_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 75 | + Route::post('/applications/private-deploy-key', [ApplicationsController::class, 'create_private_deploy_key_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 76 | + Route::post('/applications/dockerfile', [ApplicationsController::class, 'create_dockerfile_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 77 | + Route::post('/applications/dockerimage', [ApplicationsController::class, 'create_dockerimage_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 78 | + Route::post('/applications/dockercompose', [ApplicationsController::class, 'create_dockercompose_application'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 79 | + |
| 80 | + Route::get('/applications/{uuid}', [ApplicationsController::class, 'application_by_uuid']); |
| 81 | + Route::patch('/applications/{uuid}', [ApplicationsController::class, 'update_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 82 | + Route::delete('/applications/{uuid}', [ApplicationsController::class, 'delete_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 83 | + |
| 84 | + Route::get('/applications/{uuid}/envs', [ApplicationsController::class, 'envs']); |
| 85 | + Route::post('/applications/{uuid}/envs', [ApplicationsController::class, 'create_env'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 86 | + Route::patch('/applications/{uuid}/envs/bulk', [ApplicationsController::class, 'create_bulk_envs'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 87 | + Route::patch('/applications/{uuid}/envs', [ApplicationsController::class, 'update_env_by_uuid']); |
| 88 | + Route::delete('/applications/{uuid}/envs/{env_uuid}', [ApplicationsController::class, 'delete_env_by_uuid'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 89 | + |
| 90 | + Route::match(['get', 'post'], '/applications/{uuid}/start', [ApplicationsController::class, 'action_deploy'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 91 | + Route::match(['get', 'post'], '/applications/{uuid}/restart', [ApplicationsController::class, 'action_restart'])->middleware([IgnoreReadOnlyApiToken::class]); |
| 92 | + Route::match(['get', 'post'], '/applications/{uuid}/stop', [ApplicationsController::class, 'action_stop'])->middleware([IgnoreReadOnlyApiToken::class]); |
93 | 93 |
|
94 | 94 | Route::get('/databases', [DatabasesController::class, 'databases']);
|
95 | 95 | Route::post('/databases/postgresql', [DatabasesController::class, 'create_database_postgresql'])->middleware([IgnoreReadOnlyApiToken::class]);
|
|
0 commit comments