16 lines
508 B
PHP
16 lines
508 B
PHP
|
<?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']);
|
||
|
});
|