Skip to content

Commit

Permalink
test: fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanatra committed Oct 11, 2023
1 parent 94d376c commit c09ea89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/+page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const load = async ({ fetch }) => {
const response = await fetch(`/api/posts`)
const response = await fetch(`./api/posts`)
const posts = await response.json()

return {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[slug]/+page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const load = async ({ fetch }) => {
const response = await fetch(`/api/posts`)
const response = await fetch(`./api/posts`)
const posts = await response.json()

return {
Expand Down

0 comments on commit c09ea89

Please sign in to comment.