leonsuke

StudentAPIController

Apr 11th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. 'use strict'
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Http routes are entry points to your web application. You can create
  9. | routes for different URLs and bind Controller actions to them.
  10. |
  11. | A complete guide on routing is available here.
  12. | http://adonisjs.com/docs/4.0/routing
  13. |
  14. */
  15.  
  16. /** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
  17. const Route = use('Route')
  18.  
  19. /* Route.get('/', () => {
  20. return { greeting: 'Hello world in JSON' }
  21. }) */
  22.  
  23. Route.group(() => {
  24. // Route.get('/index', 'StudentAPIController.index')
  25. // Route.get('/show/:student_id', 'StudentAPIController.show')
  26. // Route.get('/count', 'StudentAPIController.counting')
  27. }).prefix('api/masterdata/')
  28. Route.resource('/candidates', 'CandidateApiController')
Advertisement
Add Comment
Please, Sign In to add comment