Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
5
src/content/README.md
Normal file
5
src/content/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Content
|
||||
|
||||
Contains raw content for pages.
|
||||
|
||||
Mostly some static pages or blog posts.
|
@ -1,15 +1,15 @@
|
||||
// 1. Import utilities from `astro:content`
|
||||
import { defineCollection, z } from 'astro:content'
|
||||
// import { defineCollection, z } from 'astro:content'
|
||||
|
||||
// 2. Define your collection(s)
|
||||
const docsCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string()
|
||||
})
|
||||
})
|
||||
// const docsCollection = defineCollection({
|
||||
// type: 'content',
|
||||
// schema: z.object({
|
||||
// title: z.string()
|
||||
// })
|
||||
// })
|
||||
// 3. Export a single `collections` object to register your collection(s)
|
||||
// This key should match your collection directory name in "src/content"
|
||||
export const collections = {
|
||||
'docs': docsCollection,
|
||||
};
|
||||
// export const collections = {
|
||||
// 'docs': docsCollection,
|
||||
// };
|
||||
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
title: 'Unauthorized Access Error'
|
||||
---
|
||||
|
||||
# Unauthorized Access Error
|
||||
|
||||
## Possible Errors
|
||||
|
||||
### Permission Error
|
||||
|
||||
You need to have an API key with the correct permission to use the specified resource
|
||||
|
||||
### Missing API Key
|
||||
|
||||
To have access to most of the API Urls you need to have n API key in your headers like the following
|
||||
|
||||
```http
|
||||
Authorization: Bearer 935b6640-25fe-402e-8b18-e60de88bc0da
|
||||
```
|
||||
|
||||
### Cookies not found
|
||||
|
||||
An alternative to the API Key is to have your cookies set, this is mostly for in browser and will only work while being connected on the website
|
Reference in New Issue
Block a user