docs: fix scalar error on verion ^1.25.75
This commit is contained in:
parent
b6d00c41ab
commit
9d8771d43a
1 changed files with 8 additions and 1 deletions
|
|
@ -34,7 +34,14 @@ const APP_PORT = +(process.env.APP_PORT || 3000);
|
|||
app.use(morgan);
|
||||
|
||||
app.use("/", express.static("static"));
|
||||
app.use("/api-docs", apiReference({ theme: "kepler", spec: { url: "/api/openapi" } }));
|
||||
app.use(
|
||||
"/api-docs",
|
||||
apiReference({
|
||||
theme: "kepler",
|
||||
spec: { url: "/api/openapi" },
|
||||
cdn: "https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.74",
|
||||
}),
|
||||
);
|
||||
|
||||
RegisterRoutes(app);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue