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,
getKindToCategorySlug,
@ -34,6 +37,8 @@ if ( redirectResponse !== null ) {
return redirectResponse
}
applyResponseDefaults( Astro )
// Try the pathSlug against categories
// so we can load from category slugs