mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-15 17:18:05 -05:00
34 lines
975 B
JavaScript
34 lines
975 B
JavaScript
// Views
|
|
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');
|
|
|
|
// 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');
|
|
const stats = require('./api/stats.js');
|
|
|
|
module.exports = function (app) {
|
|
app.use('/', index);
|
|
app.use('/home', home);
|
|
app.use('/register', register);
|
|
app.use('/login', login);
|
|
app.use('/panel', panel);
|
|
app.use('/panel*', panel);
|
|
|
|
|
|
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);
|
|
app.use('/api/stats', stats);
|
|
}; |