This commit is contained in:
James Quinley 2023-06-20 21:55:23 -07:00
commit 4b7911a33c

View File

@ -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) => {