Skip to content

Commit 1bde51f

Browse files
committed
chore: load API reference from live URL instead of local JSON
Removed the static openapi.json file and updated the website to fetch API schema dynamically from the local server endpoint. This keeps the API reference up-to-date without manual JSON updates.
1 parent f4eb329 commit 1bde51f

2 files changed

Lines changed: 1 addition & 201 deletions

File tree

website/src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { createApiReference } from "@scalar/api-reference";
22
import "@scalar/api-reference/style.css";
3-
import openapi from "./openapi.json";
43

54
createApiReference("#app", {
6-
content: openapi,
5+
url: "http://127.0.0.1:3000/api/v1/openapi.json",
76
agent: {
87
disabled: true,
98
},

website/src/openapi.json

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)