1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 10:52:31 +01:00

Minor API stuff

This commit is contained in:
uurgothat 2021-11-17 22:28:41 +03:00
parent 54ebf97e78
commit 74dee34f69
2 changed files with 13 additions and 3 deletions

View File

@ -1,11 +1,10 @@
import { Request, Response, Router } from "express";
const router: Router = Router();
import { Template, Guild, Role, Snowflake, Config, User, Member } from "@fosscord/util";
const { enabled, allowTemplateCreation, allowDiscordTemplates, allowRaws } = Config.get().templates;
import { route } from "@fosscord/api";
import { DiscordApiErrors } from "@fosscord/util";
import fetch from "node-fetch";
const router: Router = Router();
const { enabled, allowTemplateCreation, allowDiscordTemplates, allowRaws } = Config.get().templates;
export interface GuildTemplateCreateSchema {
name: string;

11
api/src/routes/track.ts Normal file
View File

@ -0,0 +1,11 @@
import { Router, Response, Request } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.post("/", route({}), (req: Request, res: Response) => {
// TODO:
res.sendStatus(204);
});
export default router;