Add proper API docs page, fix Stripe lazy init, update docs links

This commit is contained in:
DocFast Bot 2026-02-14 14:31:44 +00:00
parent 467a97ae1c
commit 7f04789997
5 changed files with 419 additions and 14 deletions

View file

@ -53,6 +53,11 @@ app.get("/v1/usage", authMiddleware, (_req, res) => {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
app.use(express.static(path.join(__dirname, "../public")));
// Docs page (clean URL)
app.get("/docs", (_req, res) => {
res.sendFile(path.join(__dirname, "../public/docs.html"));
});
// API root
app.get("/api", (_req, res) => {
res.json({