Skip to content

Commit 0f28d54

Browse files
author
Invers3
committed
Update app
Testing post
1 parent 4aca8d3 commit 0f28d54

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

netlify/functions/getPost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports.handler = async function(event){
66
try {
77

88
const subject = event.queryStringParameters.name || 'post'
9-
const postsDir = path.join(__dirname, '..', '..', 'public', '_posts', subject + '.json');
9+
const postsDir = path.join(__dirname, '_posts', subject + '.json');
1010
const post = fs.readFileSync(postsDir);
1111

1212
return {

0 commit comments

Comments
 (0)