2018-08-01 11:54:35 -04:00
|
|
|
// Views
|
2018-07-28 17:13:50 -04:00
|
|
|
const index = require('./index.js');
|
|
|
|
const home = require('./home.js');
|
|
|
|
const register = require('./register.js');
|
|
|
|
const login = require('./login.js');
|
|
|
|
const panel = require('./panel.js');
|
2018-08-01 11:54:35 -04:00
|
|
|
|
|
|
|
// API
|
|
|
|
const auth = require('./api/auth.js');
|
|
|
|
const upload = require('./api/upload.js');
|
|
|
|
const view = require('./api/view.js');
|
|
|
|
const invites = require('./api/invites.js');
|
|
|
|
const keys = require('./api/keys.js');
|
|
|
|
const users = require('./api/users.js');
|
2018-09-15 18:25:07 -04:00
|
|
|
const stats = require('./api/stats.js');
|
2017-10-22 12:19:51 -04:00
|
|
|
|
|
|
|
module.exports = function (app) {
|
2017-10-09 22:01:02 -04:00
|
|
|
app.use('/', index);
|
2018-07-28 17:13:50 -04:00
|
|
|
app.use('/home', home);
|
2017-10-11 10:15:19 -04:00
|
|
|
app.use('/register', register);
|
2017-10-11 13:11:57 -04:00
|
|
|
app.use('/login', login);
|
2018-07-28 17:13:50 -04:00
|
|
|
app.use('/panel', panel);
|
|
|
|
app.use('/panel*', panel);
|
2018-08-01 11:54:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
app.use('/api/auth', auth);
|
|
|
|
app.use('/api/upload', upload);
|
|
|
|
app.use('/v', view);
|
|
|
|
app.use('/api/view', view);
|
|
|
|
app.use('/api/invites', invites);
|
|
|
|
app.use('/api/keys', keys);
|
|
|
|
app.use('/api/users', users);
|
2018-09-15 18:25:07 -04:00
|
|
|
app.use('/api/stats', stats);
|
2017-10-11 10:15:19 -04:00
|
|
|
};
|