Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
qkrwldnjs authored Oct 18, 2022
1 parent 6f5a581 commit cd66d47
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');

const apiRouter = require('./routes/api');
Expand All @@ -26,9 +25,4 @@ app.use('/api', chartRouter);
app.use('/', authRouter);
app.use('/api/playlist', playlistRouter);

app.use(express.static(path.join(__dirname, 'build')));
app.get('/*', (req, res) => {
res.sendFile(path.join(__dirname, 'build/index.html'));
})

app.listen(80, () => console.log('Running'));

0 comments on commit cd66d47

Please sign in to comment.