1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

Merge pull request #175 from luth31/master

This commit is contained in:
Flam3rboy 2021-07-26 07:08:44 +02:00 committed by GitHub
commit 255c84e319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
import { Config } from "@fosscord/server-util";
import { Request, Response, Router } from "express";
const router = Router();
router.get("/", async (req: Request, res: Response) => {
return res.json(Config.get().regions.available);
});
export default router;

View File

@ -24,7 +24,7 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) =
const guild_id = Snowflake.generate();
const guild: Guild = {
name: body.name,
region: body.region || "en-US",
region: Config.get().regions.default,
owner_id: req.user_id,
icon: undefined,
afk_channel_id: undefined,