first commit
This commit is contained in:
16
start/routes.ts
Normal file
16
start/routes.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Routes file
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The routes file is used for defining the HTTP routes.
|
||||
|
|
||||
*/
|
||||
|
||||
import router from '@adonisjs/core/services/router'
|
||||
import SectionsController from '#controllers/sections_controller'
|
||||
|
||||
router.on('/').render('pages/home')
|
||||
router.on('sections').render('pages/sections')
|
||||
router.get('api/sections', [SectionsController, 'index'])
|
||||
router.delete('api/section/:id', [SectionsController, 'destroy'])
|
||||
Reference in New Issue
Block a user