Add proper API docs page, fix Stripe lazy init, update docs links
This commit is contained in:
parent
467a97ae1c
commit
7f04789997
5 changed files with 419 additions and 14 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue