Use Response Defaults on templates

This commit is contained in:
Sam Carlton 2022-06-15 12:48:26 -05:00
parent 38ff3bb510
commit b665e100af
8 changed files with 47 additions and 8 deletions

View file

@ -5,7 +5,10 @@
import { DoesItAPI } from '~/helpers/api/client.js'
import { getPathPartsFromAstroRequest } from '~/helpers/url.js'
import { catchRedirectResponse } from '~/helpers/astro/request.js'
import {
catchRedirectResponse,
applyResponseDefaults
} from '~/helpers/astro/request.js'
import {
categories,
makeCategoryFilterFromCategorySlug
@ -33,6 +36,8 @@ if ( redirectResponse !== null ) {
return redirectResponse
}
applyResponseDefaults( Astro )
const rawKindPage = await DoesItAPI.kind( 'game' )( 1 ).get()
// Clean up unused kind data