mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
idk
This commit is contained in:
@@ -38,7 +38,8 @@ const config: ForgeConfig = {
|
||||
name: PRODUCT_NAME,
|
||||
overwrite: true,
|
||||
asar: {
|
||||
unpackDir: "{node_modules/swagger-ui-dist,node_modules/swagger-ui-express,assets}"
|
||||
unpack: "node_modules/swagger-ui-dist/**",
|
||||
unpackDir: "assets"
|
||||
},
|
||||
icon: path.join(APP_ICON_PATH, "icon"),
|
||||
...macosSignConfiguration,
|
||||
|
||||
@@ -62,6 +62,10 @@ export default function register(app: Application) {
|
||||
|
||||
app.use(
|
||||
"/etapi/docs/",
|
||||
(req, res, next) => {
|
||||
log.info(`[DEBUG] Request to /etapi/docs/: ${req.method} ${req.url}`);
|
||||
next();
|
||||
},
|
||||
swaggerUi.serveFiles(etapiDocument),
|
||||
swaggerUi.setup(etapiDocument, {
|
||||
explorer: true,
|
||||
|
||||
Reference in New Issue
Block a user