Add API routing and misc controller

This commit is contained in:
garrettmills
2020-02-08 02:39:33 -06:00
parent 7a45538d69
commit e1330cb918
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
const Controller = require('libflitter/controller/Controller')
/*
* Misc Controller
* -------------------------------------------------------------
* Put some description here!
*/
class Misc extends Controller {
hello_world(req, res) {
return res.api({
hello: 'world',
})
}
}
module.exports = exports = Misc