4 files changed, 17 insertions, 4 deletions
diff --git a/README.md b/README.md
index d83120e2..89d4de24 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,17 @@
-# Fosscord API Server
+<p align="center">
+ <img width="100" src="https://raw.githubusercontent.com/fosscord/fosscord/master/assets/logo_big_transparent.png" />
+</p>
+<h1 align="center">Fosscord HTTP API Server</h1>
+
+<p>
+ <a href="https://discord.gg/ZrnGQP6p3d">
+ <img src="https://img.shields.io/discord/806142446094385153?color=7489d5&logo=discord&logoColor=ffffff" />
+ </a>
+ <img src="https://img.shields.io/static/v1?label=Status&message=Development&color=blue">
+ <a title="Crowdin" target="_blank" href="https://translate.fosscord.com/"><img src="https://badges.crowdin.net/fosscord/localized.svg"></a>
+</p>
+
+## [About](https://github.com/fosscord/fosscord-api/wiki)
This repository contains the Fosscord HTTP API Server
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;
diff --git a/src/start.ts b/src/start.ts
index 11e15941..8d5c33ce 100644
--- a/src/start.ts
+++ b/src/start.ts
@@ -23,7 +23,7 @@ if (cluster.isMaster && process.env.production == "true") {
});
} else {
var port = Number(process.env.PORT);
- if (isNaN(port)) port = 1000;
+ if (isNaN(port)) port = 3001;
const server = new FosscordServer({ port });
server.start().catch(console.error);
|