File tree Expand file tree Collapse file tree
apps/site/app/[locale]/next-data/blog-data/[category]/[page] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ export const GET = async (_: Request, props: StaticParams) => {
2020
2121 const requestedPage = Number ( params . page ) ;
2222
23- const data = await ( requestedPage >= 1
24- ? // This allows us to blindly get all blog posts from a given category
25- // if the page number is 0 or something smaller than 1
26- providePaginatedBlogPosts ( params . category , requestedPage )
27- : provideBlogPosts ( params . category ) ) ;
23+ const data =
24+ requestedPage >= 1
25+ ? // This allows us to blindly get all blog posts from a given category
26+ // if the page number is 0 or something smaller than 1
27+ providePaginatedBlogPosts ( params . category , requestedPage )
28+ : provideBlogPosts ( params . category ) ;
2829
2930 return Response . json ( data , { status : data . posts . length ? 200 : 404 } ) ;
3031} ;
You can’t perform that action at this time.
0 commit comments