Skip to content

Commit

Permalink
。。。
Browse files Browse the repository at this point in the history
  • Loading branch information
Cksheuen committed Nov 2, 2023
1 parent d1ad07c commit 5eebe33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api/posts/getContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const __dirname = dirname(__filename)
export default defineEventHandler(async (event) => {
const body = await readBody(event)

const postsDirectory = `./public/posts/${body.path}`
const postsDirectory
// = `./public/posts/${body.path}`
= path.join(process.cwd(), 'public', 'posts', body.path)
// = path.join(__dirname, '..', 'public', 'posts', body.path)
// = path.join(process.cwd(), `posts/${body.path}`)
Expand Down

0 comments on commit 5eebe33

Please sign in to comment.