ai fix-01
This commit is contained in:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user