ai fix-01

This commit is contained in:
2026-05-10 21:40:51 +02:00
parent cd6dc3fc8f
commit de56f8435c
2 changed files with 171 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ const { router: apiRouter } = require("./routes/api");
const { openApiDocument } = require("./swagger/openapi");
const skillFilePaths = [
path.join(__dirname, "SKILL.md"),
path.join(__dirname, "..", ".idea", "SKILL.md"),
path.join(__dirname, "..", ".ai", "SKILL.md"),
];
@@ -61,7 +62,7 @@ function createApp() {
response.json(openApiDocument);
});
app.get("/SKILL.md", (request, response) => {
app.get(["/SKILL.md", "/skill.md"], (request, response) => {
const skillFilePath = getSkillFilePath();
if (!skillFilePath) {
response.status(404).json({ error: "SKILL.md not found" });