1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 02:31:36 +02:00
This commit is contained in:
Flam3rboy 2021-10-17 22:28:16 +02:00
commit ae5fd086a2
3 changed files with 13 additions and 3 deletions

View File

@ -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" ]
CMD [ "npm", "run", "start:bundle" ]

View File

@ -32,3 +32,4 @@ This repository contains:
## [Setup](https://docs.fosscord.com/setup/server/)
- [Download](https://github.com/fosscord/fosscord-server/releases)

View File

@ -0,0 +1,10 @@
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;