forked from engineering/Staff-Dashboard
Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Harry | 7f1730992b | |
Harry | 53c315974d |
|
@ -5,10 +5,6 @@ const port = 6574;
|
|||
// Serve static files from your directory
|
||||
app.use(express.static('/home/harry/Documents/staff-dash'));
|
||||
|
||||
app.use("*", (req, res) => {
|
||||
res.status(404).redirect('/');
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server running at http://staff.libraryofcode.org:${port}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue