1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-24 19:32:46 +01:00

oauth2 route draft to return an empty array

This commit is contained in:
uurgothat 2021-10-17 21:51:19 +03:00
parent 7dd1873962
commit 3a118841a0

View File

@ -0,0 +1,12 @@
//TODO: this is a template for a generic route
import { Router, Request, Response } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/",route({}), async (req: Request, res: Response) => {
//TODO
res.json([]);
});
export default router;