Bump napcat-types & add plugin static/memory tests

Upgrade napcat-types to v0.0.15 and update the built-in plugin UI to test both filesystem and in-memory static resources. dashboard.html: clarify which plugin endpoints require auth, add buttons and a testMemoryResource() function that fetches an in-memory JSON resource, and add staticBase/memBase variables for non-auth static routes. napcat-webui-backend: return after 404 for missing memory files to stop further handling. (Lockfile updated accordingly.)
This commit is contained in:
手瓜一十雪
2026-02-02 15:35:26 +08:00
parent 610e19e34c
commit e7e31972e5
5 changed files with 45 additions and 13 deletions

View File

@@ -329,7 +329,7 @@ export async function InitWebUi (logger: ILogWrapper, pathWrapper: NapCatPathWra
}
}
}
res.status(404).json({ code: -1, message: 'Memory file not found' });
return res.status(404).json({ code: -1, message: 'Memory file not found' });
});
// 插件文件系统静态资源路由(不需要鉴权)