1.0
This commit is contained in:
@@ -31,6 +31,7 @@ app.use('/uploads', uploadRoutes);
|
||||
const PUBLIC_DIR = path.join(__dirname, 'public');
|
||||
app.use('/assets', express.static(path.join(PUBLIC_DIR, 'shared')));
|
||||
app.use('/admin', express.static(path.join(PUBLIC_DIR, 'admin')));
|
||||
app.get('/admin/settings', (req, res) => res.sendFile(path.join(PUBLIC_DIR, 'admin', 'settings.html')));
|
||||
app.use('/friend', express.static(path.join(PUBLIC_DIR, 'friend')));
|
||||
app.use('/book', express.static(path.join(PUBLIC_DIR, 'book')));
|
||||
app.get('/', (req, res) => res.sendFile(path.join(PUBLIC_DIR, 'login', 'index.html')));
|
||||
|
||||
Reference in New Issue
Block a user