summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-02 17:11:18 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-02 17:11:18 +0200
commit4c8379c874da824e0a58c0400b53e5643671cfe5 (patch)
treee186e55760ba31ef16501226d7b8a82605e1555c /src/routes
parentUpdate README.md (diff)
downloadserver-4c8379c874da824e0a58c0400b53e5643671cfe5.tar.xz
Change default port:
Client = 3000
API = 3001
Gateway = 3002
Diffstat (limited to '')
-rw-r--r--src/routes/auth/register.ts2
-rw-r--r--src/routes/gateway.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/auth/register.ts b/src/routes/auth/register.ts

index 1a026670..265516d7 100644 --- a/src/routes/auth/register.ts +++ b/src/routes/auth/register.ts
@@ -77,7 +77,7 @@ router.post( if (email) { // replace all dots and chars after +, if its a gmail.com email - if (!adjusted_email) throw FieldErrors({ email: { code: "INVALID_EMAIL", message: "Invalid Email format" } }); + if (!adjusted_email) throw FieldErrors({ email: { code: "INVALID_EMAIL", message: req.t("auth:register.INVALID_EMAIL") } }); // check if there is already an account with this email const exists = await UserModel.findOne({ email: adjusted_email }).exec(); diff --git a/src/routes/gateway.ts b/src/routes/gateway.ts
index edbb8890..cab685e2 100644 --- a/src/routes/gateway.ts +++ b/src/routes/gateway.ts
@@ -3,7 +3,7 @@ import { Router } from "express"; const router = Router(); router.get("/", (req, res) => { - res.send({ url: "ws://localhost:2000" }); + res.send({ url: "ws://localhost:3002" }); }); export default router;