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

Merge pull request #404 from Thesourtimes/master

This commit is contained in:
Flam3rboy 2021-09-30 18:02:30 +02:00 committed by GitHub
commit 98131d80d9
6 changed files with 10 additions and 7 deletions

View File

@ -5,7 +5,6 @@ const router = Router();
router.post("/", route({ permission: "MANAGE_MESSAGES" }), (req: Request, res: Response) => {
// TODO:
//const { locale, primary_only } = req.query;
res.json({
id: "",
type: 0,

View File

@ -3,8 +3,9 @@ import { route } from "@fosscord/api";
const router: Router = Router();
router.get("/", route({}), async (req: Request, res: Response) => {
router.get("/:id", route({}), async (req: Request, res: Response) => {
//TODO
const id = req.params.id;
res.json({
id: "",
summary: "",

View File

@ -3,8 +3,9 @@ import { route } from "@fosscord/api";
const router: Router = Router();
router.get("/", route({}), async (req: Request, res: Response) => {
router.get("/:id", route({}), async (req: Request, res: Response) => {
//TODO
const id = req.params.id;
res.json({
id: "",
summary: "",

View File

@ -5,7 +5,6 @@ const router = Router();
router.get("/gifts", route({}), (req: Request, res: Response) => {
// TODO:
//const { locale, primary_only } = req.query;
res.json([]).status(200);
});

View File

@ -5,7 +5,7 @@ const router = Router();
router.get("/", route({}), (req: Request, res: Response) => {
// TODO:
res.json([]).status(200));
res.json([]).status(200);
});
export default router;

View File

@ -3,9 +3,12 @@ import { route } from "@fosscord/api";
const router: Router = Router();
router.put("/", route({}), async (req: Request, res: Response) => {
router.put("/:id", route({}), async (req: Request, res: Response) => {
//TODO
res.json({code: 0}).status(400);
res.json({
message: "400: Bad Request",
code: 0
}).status(400);
});
export default router;