archetype/api/controllers/DefaultController.js
'use strict'
const Controller = require('trails/lib/Controller')
/**
* @module DefaultController
*
* @description Default Controller included with a new Trails app
* @see {@link http://trailsjs.io/doc/api/controllers}
* @this TrailsApp
*/
module.exports = class DefaultController extends Controller {
/**
* Return some info about this application
*/
info(req, res) {
res.status(200).json(this.app.services.DefaultService.getApplicationInfo())
}
}