APCOvernight/apc-test-adonis

View on GitHub
start/routes.js

Summary

Maintainability
A
0 mins
Test Coverage
'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/guides/routing
|
*/

const Route = use('Route')

Route.get('/', async ({ request, response }) => {
  return response.json({ message: 'This is the home route' })
})