Apply response defaults to top level pages

This commit is contained in:
Sam Carlton 2022-06-15 13:10:39 -05:00
parent b665e100af
commit 53feb3c100
5 changed files with 26 additions and 1 deletions

View file

@ -8,10 +8,15 @@
// https://docs.astro.build/core-concepts/astro-components/
import { DoesItAPI } from '~/helpers/api/client.js'
import {
applyResponseDefaults
} from '~/helpers/astro/request.js'
import Layout from '../layouts/default.astro'
import SimpleList from '../components/simple-list.astro'
applyResponseDefaults( Astro )
const deviceIndex = await DoesItAPI.kind.device(1).get()
const kinds = deviceIndex.items.map( device => {