mirror of
https://gitlab.com/RemixDev/deemix-gui.git
synced 2024-12-28 02:26:13 +00:00
21 lines
526 B
JavaScript
21 lines
526 B
JavaScript
var express = require('express');
|
|
var path = require('path');
|
|
var cookieParser = require('cookie-parser');
|
|
var logger = require('morgan');
|
|
|
|
var indexRouter = require('./routes/index');
|
|
var usersRouter = require('./routes/users');
|
|
|
|
var app = express();
|
|
|
|
app.use(logger('dev'));
|
|
app.use(express.json());
|
|
app.use(express.urlencoded({ extended: false }));
|
|
app.use(cookieParser());
|
|
app.use(express.static(path.join(__dirname, 'webui', 'public')));
|
|
|
|
app.use('/', indexRouter);
|
|
app.use('/users', usersRouter);
|
|
|
|
module.exports = app;
|