mirror of
https://github.com/sergeyyarkov/asu_tools_service.git
synced 2026-10-11 02:19:09 +03:00
types
This commit is contained in:
parent
c0e1e2f655
commit
c4831cd7bd
6
index.js
6
index.js
@ -5,12 +5,14 @@ import { reportsHandlers } from "#handlers/index.js";
|
||||
import packageJson from "./package.json" with { type: "json" };
|
||||
import db from "./db.js";
|
||||
|
||||
/** @import {HttpContext, HttpServerOptions} from "#root/http-server/types/http-server.js" */
|
||||
|
||||
const SERVER_PORT = Number.parseInt(`${process.env.PORT || "3000"}`, 10);
|
||||
|
||||
/** @type {Map<string, import("./http-server/types/http-server.js").HttpContext>} */
|
||||
/** @type {Map<string, HttpContext>} */
|
||||
export const clients = new Map();
|
||||
|
||||
/** @type {import("./http-server/http-server.js").HttpServerOptions['cors']} */
|
||||
/** @type {HttpServerOptions['cors']} */
|
||||
const cors = {
|
||||
allow: "*",
|
||||
methods: "GET,POST,DELETE,UPDATE,PUT,PATCH",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user