Skip to content

Commit

Permalink
Merge pull request #6 from EmergingDigitalAcademy/hashrouter
Browse files Browse the repository at this point in the history
Hashrouter update
  • Loading branch information
booherbg authored Dec 10, 2024
2 parents cd2b439 + 3586d93 commit 1ad48b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ app.use(passport.session());
app.use('/api/users', userRouter);
app.use('/api/todos', todosRouter);

app.get('*', (req, res) => {
console.log('sending index.html')
res.sendFile(path.resolve('dist', 'index.html'))
});

app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
Expand Down
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import { useEffect } from 'react';
import Login from './pages/Login';
import Register from './pages/Register';
Expand Down

0 comments on commit 1ad48b7

Please sign in to comment.