api/cookies: trigger cookie load from api entrypoint

This commit is contained in:
jj
2024-10-27 18:10:57 +00:00
parent af50852815
commit 5a5a65b373
2 changed files with 7 additions and 8 deletions

View File

@@ -18,6 +18,7 @@ import { friendlyServiceName } from "../processing/service-alias.js";
import { verifyStream, getInternalStream } from "../stream/manage.js";
import { createResponse, normalizeRequest, getIP } from "../processing/request.js";
import * as APIKeys from "../security/api-keys.js";
import * as Cookies from "../processing/cookie/manager.js";
const git = {
branch: await getBranch(),
@@ -348,6 +349,10 @@ export const runAPI = (express, app, __dirname) => {
APIKeys.setup(env.apiKeyURL);
}
if (env.cookiePath) {
Cookies.setup(env.cookiePath);
}
app.listen(env.apiPort, env.listenAddress, () => {
console.log(`\n` +
Bright(Cyan("cobalt ")) + Bright("API ^ω⁠^") + "\n" +