1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-15 01:06:32 -05:00
shimapan/app/routes/routes.js

26 lines
824 B
JavaScript
Raw Normal View History

2018-07-28 17:13:50 -04:00
const index = require('./index.js');
const home = require('./home.js');
const upload = require('./upload.js');
const view = require('./view.js');
const auth = require('./auth.js');
const register = require('./register.js');
const login = require('./login.js');
const panel = require('./panel.js');
const keys = require('./keys.js');
const invites = require('./invite.js');
const users = require('./users.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-09 22:01:02 -04:00
app.use('/v', view);
2017-10-18 13:31:08 -04:00
app.use('/api/upload', upload);
2017-10-11 10:15:19 -04:00
app.use('/api/auth', auth);
2018-07-28 17:13:50 -04:00
app.use('/api/keys', keys);
app.use('/api/invites', invites);
app.use('/api/users', users);
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);
2017-10-11 10:15:19 -04:00
};