scaler updates

This commit is contained in:
2026-02-20 11:05:03 -06:00
parent 2d1f613d39
commit 5469a0dc5c
7 changed files with 152 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ import { apiReference } from "@scalar/express-api-reference";
// const port = 3000;
import type { OpenAPIV3_1 } from "openapi-types";
import { cronerActiveJobs } from "../scaler/cronerActiveJobs.spec.js";
import { cronerStatusChange } from "../scaler/cronerStatusChange.spec.js";
import { prodLoginSpec } from "../scaler/login.spec.js";
import { prodRestartSpec } from "../scaler/prodSqlRestart.spec.js";
import { prodStartSpec } from "../scaler/prodSqlStart.spec.js";
@@ -50,6 +51,11 @@ export const openApiBase: OpenAPIV3_1.Document = {
scheme: "basic",
description: "Basic authentication using username and password",
},
cookieAuth: {
type: "apiKey",
in: "cookie",
name: "better-auth.session_token",
},
},
// schemas: {
// Error: {
@@ -61,7 +67,12 @@ export const openApiBase: OpenAPIV3_1.Document = {
// },
// },.
},
// security: [
// {
// cookieAuth: [],
// basicAuth: [],
// },
// ],
tags: [
{
name: "Auth",
@@ -109,6 +120,7 @@ export const setupApiDocsRoutes = (baseUrl: string, app: Express) => {
...prodRegisterSpec,
//...mergedDatamart,
...cronerActiveJobs,
...cronerStatusChange,
// Add more specs here as you build features
},
@@ -144,7 +156,7 @@ export const setupApiDocsRoutes = (baseUrl: string, app: Express) => {
// Clojure
clojure: ["clj_http"],
// C#
csharp: ["httpclient", "restsharp"],
// csharp: ["httpclient", "restsharp"],
// Dart
dart: ["http"],
// F#