UNPKG

913 BJavaScriptView Raw
1'use strict';
2
3const index = require('./routes/index');
4const robots = require('./routes/robots');
5const content = require('./routes/content');
6const workflows = require('./routes/workflows');
7const login = require('./routes/login');
8const users = require('./routes/users');
9const api = require('./routes/api');
10const applications = require('./routes/applications');
11const errors = require('./routes/errors');
12const styles = require('./routes/styles');
13
14
15module.exports = application => {
16 return index(application).then(app => {
17 return login(app);
18 }).then(app => {
19 return robots(app);
20 }).then(app => {
21 return users(app);
22 }).then(app => {
23 return styles(app);
24 }).then(app => {
25 return content(app);
26 }).then(app => {
27 return workflows(app);
28 }).then(app => {
29 return api(app);
30 }).then(app => {
31 return applications(app);
32 }).then(app => {
33 return errors(app);
34 });
35};