Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict'
- /*
- |--------------------------------------------------------------------------
- | Routes
- |--------------------------------------------------------------------------
- |
- | Http routes are entry points to your web application. You can create
- | routes for different URLs and bind Controller actions to them.
- |
- | A complete guide on routing is available here.
- | http://adonisjs.com/docs/4.0/routing
- |
- */
- /** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
- const Route = use('Route')
- /* Route.get('/', () => {
- return { greeting: 'Hello world in JSON' }
- }) */
- Route.group(() => {
- // Route.get('/index', 'StudentAPIController.index')
- // Route.get('/show/:student_id', 'StudentAPIController.show')
- // Route.get('/count', 'StudentAPIController.counting')
- }).prefix('api/masterdata/')
- Route.resource('/candidates', 'CandidateApiController')
Advertisement
Add Comment
Please, Sign In to add comment