1 | 'use strict';
|
2 |
|
3 | const index = require('./routes/index');
|
4 | const robots = require('./routes/robots');
|
5 | const content = require('./routes/content');
|
6 | const workflows = require('./routes/workflows');
|
7 | const login = require('./routes/login');
|
8 | const users = require('./routes/users');
|
9 | const api = require('./routes/api');
|
10 | const applications = require('./routes/applications');
|
11 | const errors = require('./routes/errors');
|
12 | const styles = require('./routes/styles');
|
13 |
|
14 |
|
15 | module.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 | };
|