routes.php 585 Bytes
Newer Older
1 2
<?php

3
$app->get('/queryID', '\Gr\Gov\Minedu\Osteam\Slim\App:queryID')
4 5
    ->setName('queryID');

6 7 8
$app->get('/queryIDnoCD', '\Gr\Gov\Minedu\Osteam\Slim\App:queryIDnoCD')
    ->setName('queryIDnoCD');

9 10 11 12 13 14 15 16 17 18
$app->get('/student/{identity}', '\Gr\Gov\Minedu\Osteam\Slim\App:student')
    ->setName('student');

$app->any('/[{anythingelse}]', function ($request, $response, $args) {
    $this->logger->info("Void response, no action route was enabled");
    return $response->withJson([
        'message' => 'Your request is not valid',
        'in' => var_export($args, true)
    ], 404);
});