summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2024-07-08 22:30:41 -0400
committerPuyodead1 <puyodead@proton.me>2024-07-08 22:30:41 -0400
commitbc432a4325644eb1e5040b47ed05eda699bd404f (patch)
treebb6ba1828a51edb7af1bbb3cd431442a4cb9605e /src/api/Server.ts
parentfix incorrect error field (diff)
downloadserver-ts-bc432a4325644eb1e5040b47ed05eda699bd404f.tar.xz
add email verification page
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 472ab1d6..40d2b6dc 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"; @@ -141,6 +141,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);