Skip to content

Commit fe699e9

Browse files
authored
1.0 / fix
1 parent 4f2092f commit fe699e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const CONTENTFUL_ACCESS_TOKEN = process.env.CONTENTFUL_ACCESS_TOKEN;
1111
app.use(cors());
1212
app.use(express.static(path.join(__dirname, 'public')));
1313

14-
app.get('/', (req, res) => {
14+
app.get('/blog', (req, res) => {
1515
res.sendFile(path.join(__dirname, 'public', 'index.html'));
1616
});
1717

18-
app.get('/:id', (req, res) => {
18+
app.get('/blog/:id', (req, res) => {
1919
res.sendFile(path.join(__dirname, 'public', 'post.html'));
2020
});
2121
app.get('/api/posts', async (req, res) => {

0 commit comments

Comments
 (0)