Skip to content

Commit

Permalink
chore: temporary add back the GraphQL url
Browse files Browse the repository at this point in the history
Signed-off-by: Avior <[email protected]>
  • Loading branch information
Aviortheking committed May 30, 2024
1 parent 3dc152b commit 0c8ca31
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export default defineConfig({
autogenerate: {
directory: 'rest'
},
}, {
label: 'GraphQL API',
link: '/graphql'
}, {
label: 'SDKs',
autogenerate: {
Expand Down
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ http {
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

error_page 404 /404.html;
error_page 500 502 503 504 /500.html;
error_page 500 502 503 504 /50x.html;

# Security headers (note: temporaly unvailable "prefetch-src 'self'; ")
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; form-action 'self'; manifest-src 'self'; script-src 'self' 'unsafe-inline' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src data: 'self' https://img.shields.io; font-src 'self'; connect-src 'self'; base-uri 'self';";
Expand All @@ -44,7 +44,7 @@ http {
add_header X-Download-Options "noopen";

location / {
try_files $uri $uri.html $uri/index.html /$uri /$uri/index.html /index.html;
try_files $uri $uri.html $uri/index.html /$uri /$uri/index.html =404;
}

# Plausible script
Expand Down
8 changes: 8 additions & 0 deletions src/content/docs/graphql.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: GrapQL API
description: The GraphQL API that allows you to build your own requests for the TCGdex API
---

Full documentation in progress.

You can still go checkout [the GraphQL online Editor](https://api.tcgdex.net/v2/graphql) to use it !
1 change: 0 additions & 1 deletion src/pages/pouet.astro

This file was deleted.

0 comments on commit 0c8ca31

Please sign in to comment.