[add] Listing of employee types

This commit is contained in:
2018-08-05 22:31:40 -06:00
parent 6b289695c7
commit 692f52b533
4 changed files with 58 additions and 0 deletions

View File

@@ -33,4 +33,10 @@ $app->post('/api/session/logout', function (Request $request, Response $response
return $response->withStatus(200)
->withHeader('Content-Type', 'application/json')
->write(json_encode($this->sessionApplication->destroySession()));
});
$app->get('/api/employee/types', function (Request $request, Response $response, array $args) {
return $response->withStatus(200)
->withHeader('Content-Type', 'application/json')
->write(json_encode($this->employeeApplication->listEmployeeTypes()));
});