From ca4fb5c1a6a5ab6fcb6bf015d9a735844de3646e 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 0419786f7cb09daf1f1acdea601f433a3bfaae28 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 be164e7d2a5abe8443e78228ade21526cf263a5c 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 4a6ecd0b15441c4b826184cb227469fa66ae159d 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();