chore(monorepo/server): move server-side source code

This commit is contained in:
Elian Doran
2025-04-18 12:09:56 +03:00
parent da41b95d36
commit 5058891af8
892 changed files with 1478 additions and 298 deletions

27
apps/server/src/express.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
import { Session } from "express-session";
export declare module "express-serve-static-core" {
interface Request {
session: Session & {
loggedIn: boolean;
lastAuthState: {
totpEnabled: boolean;
ssoEnabled: boolean;
};
};
headers: {
"x-local-date"?: string;
"x-labels"?: string;
authorization?: string;
"trilium-cred"?: string;
"x-csrf-token"?: string;
"trilium-component-id"?: string;
"trilium-local-now-datetime"?: string;
"trilium-hoisted-note-id"?: string;
"user-agent"?: string;
};
}
}