Guest User

Untitled

a guest
Nov 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const pkg_json = require('./package.json')
  2. const vertex = require('vertex360')({site_id:pkg_json.app})
  3.  
  4. // initialize app
  5. const app = vertex.app()
  6.  
  7. // import routes
  8. const index = require('./routes/index')
  9. const api = require('/.routes/api')
  10. const sms = require('./routes/sms')
  11. const tags = require('./routes/tags')
  12.  
  13. // set routes
  14. app.use('/', index)
  15. app.use('/api', api)
  16. app.use('/sms', sms)
  17. app.use('/tags', tags)
  18.  
  19. module.exports = app
Add Comment
Please, Sign In to add comment