2023-03-03 15:54:28 +00:00
|
|
|
import Route from '@ioc:Adonis/Core/Route';
|
|
|
|
|
|
|
|
// API
|
|
|
|
Route.group(() => {
|
2023-06-22 15:20:04 +00:00
|
|
|
// Route.post("register", "AuthController.register");
|
|
|
|
// Route.post("login", "AuthController.login");
|
2023-03-03 15:54:28 +00:00
|
|
|
|
2023-06-22 15:20:04 +00:00
|
|
|
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");
|
|
|
|
});
|
|
|
|
// .middleware("auth:api");
|
2023-03-03 15:54:28 +00:00
|
|
|
})
|
2023-06-22 15:20:04 +00:00
|
|
|
.namespace('App/Controllers/Http/Api')
|
|
|
|
.prefix('api');
|