summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-07-18 16:08:06 +0200
committerGitHub <noreply@github.com>2024-07-18 16:08:06 +0200
commitd79669f7712c467136e22761a4779a9ebd679b5e (patch)
treec42a8a211c5b88a5d0cb82510aade40b52f697e3 /src/api/Server.ts
parentFix build by using ts-ignore (diff)
parentMake channel ID optional when replying (diff)
downloadserver-ts-d79669f7712c467136e22761a4779a9ebd679b5e.tar.xz
Merge branch 'master' into feat/local-image-proxy
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 0f5df490..bea75d7e 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -18,15 +18,15 @@ import { Config, + ConnectionConfig, + ConnectionLoader, Email, - initDatabase, - initEvent, JSONReplacer, - registerRoutes, Sentry, WebAuthn, - ConnectionConfig, - ConnectionLoader, + initDatabase, + initEvent, + registerRoutes, } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { Server, ServerOptions } from "lambert-server"; @@ -143,6 +143,10 @@ export class SpacebarServer extends Server { res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")), ); + app.get("/verify", (req, res) => + res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html")), + ); + this.app.use(ErrorHandler); Sentry.errorHandler(this.app);