We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Are defined in /api/controllers/ as [name].js. Example: /api/controllers/user.js.
/api/controllers/
[name].js
/api/controllers/user.js
The route to the controller have to be defined in the API Routes config file, located at: /routes/api.js
/routes/api.js
File structure: /api/controllers/test.js
/api/controllers/test.js
module.exports = { // route: /test index: function(req, res) { res.json({ test: "ok" }) }, // route: /test/get get: function(req, res) { res.json({ test: "ok" }) }, }