Arno Kaimbacher
cefd9081ae
Some checks failed
CI Pipeline / japa-tests (push) Failing after 52s
- adapted menu.ts, NavBar.vue, NavBarItem.vue for highlighting active nav item - NavBarItemLabel.vue for app menu highlighting - adapted routes.ts - adapted app.edge for new favicon - adapted LayoutAuthenticated.vue (:showAsideMenu="false") for showing AsideMenu optional - new material icons: BriefcaseCheck.vue, SwapHorizontal.vue, AccountGroup.vue, Lock.vue - started with FirstRunWizard
28 lines
1.2 KiB
TypeScript
28 lines
1.2 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');
|
|
|
|
Route.get('/download/:id', 'FileController.findOne').as('file.findOne');
|
|
|
|
Route.get('/avatar/:name/:background?/:textColor?/:size?', 'AvatarController.generateAvatar')
|
|
});
|
|
// .middleware("auth:api");
|
|
})
|
|
.namespace('App/Controllers/Http/Api')
|
|
.prefix('api');
|