Skip to content

Commit

Permalink
Nav Data Loader
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed Sep 5, 2024
1 parent 0ae4c59 commit 04474e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/blog/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function get (req) {
const total = posts.length

const { path: activePath } = req
const navData = navDataLoader('blog', activePath)
const navData = navDataLoader('docs', activePath)

return {
json: {
Expand Down
2 changes: 1 addition & 1 deletion app/api/blog/posts/$$.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function get (req) {
? 'max-age=3600;'
: 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0'

const navData = navDataLoader('blog', activePath)
const navData = navDataLoader('docs', activePath)

return {
headers: {
Expand Down

0 comments on commit 04474e0

Please sign in to comment.