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 5eebe33 commit 9ac2045
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 97 deletions.
17 changes: 0 additions & 17 deletions components/Counter.vue

This file was deleted.

17 changes: 0 additions & 17 deletions components/Logos.vue

This file was deleted.

49 changes: 0 additions & 49 deletions pages/hi/[id].vue

This file was deleted.

5 changes: 0 additions & 5 deletions server/api/hello/[name].ts

This file was deleted.

7 changes: 0 additions & 7 deletions server/api/pageview.ts

This file was deleted.

2 changes: 1 addition & 1 deletion server/api/posts/getContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineEventHandler(async (event) => {
const body = await readBody(event)

const postsDirectory
// = `./public/posts/${body.path}`
= path.join(process.cwd(), 'public', 'posts', body.path)
// = `/posts/${body.path}`
// = path.join(__dirname, '..', 'public', 'posts', body.path)
// = path.join(process.cwd(), `posts/${body.path}`)
// = `/posts/${body.path}`
Expand Down
2 changes: 1 addition & 1 deletion server/api/posts/postDirs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default defineEventHandler(async (event) => {
const body = await readBody(event)

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

0 comments on commit 9ac2045

Please sign in to comment.