forked from geolba/tethys.backend
initial commit
This commit is contained in:
commit
4fc3bb0a01
202 changed files with 41729 additions and 0 deletions
18
start/routes/api.ts
Normal file
18
start/routes/api.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
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("author/:id", "TodosController.show");
|
||||
// Route.put("author/update", "TodosController.update");
|
||||
// Route.post("author", "TodosController.store");
|
||||
});
|
||||
// .middleware("auth:api");
|
||||
})
|
||||
.namespace('App/Controllers/Http/Api')
|
||||
.prefix('api');
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue