Arno Kaimbacher
b6b1c90ff8
All checks were successful
CI Pipeline / japa-tests (push) Successful in 50s
- add @types/clamscan and clamscan for node - package clamav-daemon and clamav-frehshclam for docker - add API Controller: HomeController.ts for /api/years and /api/sitelinks/{year} change root path of file storage from '/storage/app/public/files' to '/storage/app/public' - adapt dockerfile to use node:18-bookworm-slim
24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
import Route from '@ioc:Adonis/Core/Route';
|
|
|
|
// API
|
|
Route.group(() => {
|
|
// Route.post("register", "AuthController.register");
|
|
// Route.post("login", "AuthController.login");
|
|
|
|
Route.group(() => {
|
|
Route.get('authors', 'AuthorsController.index').as('author.index');
|
|
Route.get('datasets', 'DatasetController.index').as('dataset.index');
|
|
Route.get('persons', 'AuthorsController.persons').as('author.persons');
|
|
// Route.get("author/:id", "TodosController.show");
|
|
// Route.put("author/update", "TodosController.update");
|
|
// Route.post("author", "TodosController.store");
|
|
Route.get('/dataset', 'DatasetController.findAll').as('dataset.findAll');
|
|
Route.get('/dataset/:publish_id', 'DatasetController.findOne').as('dataset.findOne');
|
|
Route.get('/sitelinks/:year', 'HomeController.findDocumentsPerYear');
|
|
Route.get('/years', 'HomeController.findYears');
|
|
});
|
|
// .middleware("auth:api");
|
|
})
|
|
.namespace('App/Controllers/Http/Api')
|
|
.prefix('api');
|