diff --git a/server.js b/server.js index 517813f..15619d5 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/listall/", 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 @@ -53,7 +53,24 @@ app.get("/lobbylist/", async (request, response) => { LBIP4: "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) => {