From 3de9a61c05d99529df44fdb77e9e5ee9e8a5da0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=9Fur?= Date: Sun, 17 Oct 2021 03:45:39 +0300 Subject: [PATCH 1/4] Fix requirements with python --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4eed2f40..c0f3ab20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ -FROM alpine -RUN apk add --update nodejs npm +FROM nikolaik/python-nodejs:latest WORKDIR /usr/src/fosscord-server/ COPY . . WORKDIR /usr/src/fosscord-server/bundle RUN npm run setup EXPOSE 3001 -CMD [ "npm", "run", "start:bundle" ] \ No newline at end of file +CMD [ "npm", "run", "start:bundle" ] From 25a08b3f9f20c22ac1e6c9367475dcf62b75c648 Mon Sep 17 00:00:00 2001 From: Samuel <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 17 Oct 2021 15:39:34 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9386ebdd..b8e2e573 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,4 @@ This repository contains: ## [Setup](https://docs.fosscord.com/setup/server/) +- [Download](https://github.com/fosscord/fosscord-server/releases) From 3a118841a00e0bc561c2ac6cb45ceb1764dbd62c Mon Sep 17 00:00:00 2001 From: uurgothat Date: Sun, 17 Oct 2021 21:51:19 +0300 Subject: [PATCH 3/4] oauth2 route draft to return an empty array --- api/src/routes/oauth2/tokens.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 api/src/routes/oauth2/tokens.ts diff --git a/api/src/routes/oauth2/tokens.ts b/api/src/routes/oauth2/tokens.ts new file mode 100644 index 00000000..2bea4af7 --- /dev/null +++ b/api/src/routes/oauth2/tokens.ts @@ -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; From 1de902108d4ba89aba4d2b9921d4ba08184dec49 Mon Sep 17 00:00:00 2001 From: Kuna <65683493+Thesourtimes@users.noreply.github.com> Date: Sun, 17 Oct 2021 21:54:59 +0300 Subject: [PATCH 4/4] remove template comment --- api/src/routes/oauth2/tokens.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/src/routes/oauth2/tokens.ts b/api/src/routes/oauth2/tokens.ts index 2bea4af7..3657176d 100644 --- a/api/src/routes/oauth2/tokens.ts +++ b/api/src/routes/oauth2/tokens.ts @@ -1,5 +1,3 @@ -//TODO: this is a template for a generic route - import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; const router = Router();