Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let DB = require('db_facade');
- // Now you can use DB as its already created, this means we dont need to create it everywhere we use it.
- export default class Controller{
- postIndex(req, res){
- DB.insert('table', req.get('data'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement