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

@ -3,7 +3,10 @@
// https://docs.astro.build/core-concepts/astro-components/
import { DoesItAPI } from '~/helpers/api/client.js'
import { catchRedirectResponse } from '~/helpers/astro/request.js'
import {
catchRedirectResponse,
applyResponseDefaults
} from '~/helpers/astro/request.js'
import {
getVideoImages,
ListingDetails
@ -20,6 +23,8 @@ if ( redirectResponse !== null ) {
return redirectResponse
}
applyResponseDefaults( Astro )
// Get type and slug from the request path
// so that we don't have extra parts for