From 4f66f3c709d4af6eacd953a0b441bab3924a0d52 Mon Sep 17 00:00:00 2001 From: James Quinley Date: Sun, 18 Jun 2023 21:57:15 -0700 Subject: [PATCH] General update to show what I must do. --- server.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 1ca523e..ea93eda 100644 --- a/server.js +++ b/server.js @@ -35,7 +35,7 @@ app.get("/", (request, response) => { }); /**GET:USRPASS:SESSION*/ -app.get("/lobbylist/", async (request, response) => { +app.get("/lobby/list/", async (request, response) => { /** Field LobbyCount notifies the client of the number of indexed lobbies in the response Field LBN[num] breaks down into Lobby Name [Number], this informs the client what the name is of the assosiated lobby @@ -49,7 +49,24 @@ app.get("/lobbylist/", async (request, response) => { LBIP2: "xxx.xxx.xxx.xxx" }); }); - +app.get("/lobby/submit/", async (request, response) => { + /** + Lobby submission documentation + */ + response.status(503).json({ + INFORMATION: "THE LOBBY SUBMISSION ENDPOINT IS NOT ACTIVE, TRY AGAIN LATER.", + VERSION: 1.0 + }); +}); +app.get("/lobby/remove/", async (request, response) => { + /** + Lobby removal documentation + */ + response.status(503).json({ + INFORMATION: "THE LOBBY REMOVAL ENDPOINT IS NOT ACTIVE, TRY AGAIN LATER.", + VERSION: 1.0 + }); +}); app.listen(10000, () => { console.log("Application is now online, attempting to connect to Database. Requests will be set to 503 until connected!") MongoClient.connect(CONNECTION_URL, { useNewUrlParser: true, useUnifiedTopology: true} , (error, client) => {