mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use Response Defaults on templates
This commit is contained in:
parent
38ff3bb510
commit
b665e100af
8 changed files with 47 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue