Add API routing and misc controller
This commit is contained in:
17
app/controllers/api/v1/Misc.controller.js
Normal file
17
app/controllers/api/v1/Misc.controller.js
Normal 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
|
||||
Reference in New Issue
Block a user