Messages from io gets saved to redis in message list. Endpoint for clearing, should be called when a lottery is ended.

This commit is contained in:
2020-03-17 01:05:26 +01:00
parent c893d7d870
commit cda945ead8
3 changed files with 42 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ const virtualApi = require(path.join(__dirname + "/api/virtualLottery"));
//This is required for the chat to work
const chat = require(path.join(__dirname + "/api/chat"))(io);
const chatHistory = require(path.join(__dirname + "/api/chatHistory"));
const bodyParser = require("body-parser");
@@ -89,6 +90,7 @@ app.use("/", loginApi);
app.use("/api/", updateApi);
app.use("/api/", retrieveApi);
app.use("/api/", wineinfoApi);
app.use("/api/", chatHistory);
app.use("/api/virtual/", virtualApi(io));
app.use("/subscription", subscriptionApi);