Jobs setup
This commit is contained in:
15
api/resources/routes/03_jobs.php
Normal file
15
api/resources/routes/03_jobs.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Jobs;
|
||||
|
||||
$app->group('/jobs', function($app) {
|
||||
$app->group('/pending', function($app) {
|
||||
$app->put('/command[/]', [Jobs::class, 'pendingCommands']);
|
||||
$app->get('[/]', [Jobs::class, 'pending']);
|
||||
});
|
||||
$app->post('/schedule[/]', [Jobs::class, 'schedule']);
|
||||
$app->get('[/]', Jobs::class);
|
||||
});
|
||||
$app->group('/job/{job_id}', function($app) {
|
||||
$app->get('/finish[/]', [Jobs::class, 'finish']);
|
||||
$app->get('/failed[/]', [Jobs::class, 'failed']);
|
||||
});
|
Reference in New Issue
Block a user