UNPKG

generator-sails-rest-api

Version:

Yeoman generator that provides already configured and optimized Sails REST API with bundle of predefined features

13 lines (10 loc) 219 B
"use strict"; /** * PingController * @description :: Server-side logic that checks if app is alive */ module.exports = { index(req, res) { res.ok(req.allParams(), {message: 'HTTP server is working'}); } };