openclaw integration test

This commit is contained in:
2026-05-10 21:13:46 +02:00
parent b78900b909
commit 6714493af9
4 changed files with 179 additions and 1 deletions

View File

@@ -1,11 +1,14 @@
const cors = require("cors");
const express = require("express");
const path = require("path");
const swaggerUi = require("swagger-ui-express");
const { config } = require("./config");
const { pingMongo } = require("./db/client");
const { router: apiRouter } = require("./routes/api");
const { openApiDocument } = require("./swagger/openapi");
const skillFilePath = path.join(__dirname, "..", ".ai", "SKILL.md");
function createApp() {
const app = express();
@@ -50,6 +53,11 @@ function createApp() {
response.json(openApiDocument);
});
app.get("/SKILL.md", (request, response) => {
response.type("text/markdown");
response.sendFile(skillFilePath);
});
app.use("/docs", swaggerUi.serve, swaggerUi.setup(openApiDocument));
app.use("/api", apiRouter);