forked from dbroqua/MusicTopus
15 lines
306 B
JavaScript
15 lines
306 B
JavaScript
|
import express from 'express';
|
||
|
import path from 'path';
|
||
|
|
||
|
import indexRouter from './routes/index';
|
||
|
|
||
|
const app = express();
|
||
|
|
||
|
app.use(express.json());
|
||
|
app.use(express.urlencoded({extended: false}));
|
||
|
app.use(express.static(path.join(__dirname, '../public')));
|
||
|
|
||
|
app.use('/', indexRouter);
|
||
|
|
||
|
export default app;
|