mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
Do this thing to make Pano happy :)
This commit is contained in:
parent
57a34e5c02
commit
9c86a03acc
@ -4,11 +4,12 @@ import { readFile } from "fs/promises";
|
|||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { dirname, join } from "path";
|
import { dirname, join } from "path";
|
||||||
import yaml from "js-yaml";
|
import yaml from "js-yaml";
|
||||||
|
import type { JsonObject } from "swagger-ui-express";
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
const swaggerDocument = yaml.load(
|
const swaggerDocument = yaml.load(
|
||||||
await readFile(join(__dirname, "../etapi/etapi.openapi.yaml"), "utf8")
|
await readFile(join(__dirname, "../etapi/etapi.openapi.yaml"), "utf8")
|
||||||
) as object;
|
) as JsonObject;
|
||||||
|
|
||||||
function register(router: Router) {
|
function register(router: Router) {
|
||||||
router.use(
|
router.use(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user