General update to show what I must do.

This commit is contained in:
James Quinley 2023-06-18 21:57:15 -07:00
parent 37be23c824
commit 4f66f3c709

View File

@ -35,7 +35,7 @@ app.get("/", (request, response) => {
}); });
/**GET:USRPASS:SESSION*/ /**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 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 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" 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, () => { app.listen(10000, () => {
console.log("Application is now online, attempting to connect to Database. Requests will be set to 503 until connected!") 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) => { MongoClient.connect(CONNECTION_URL, { useNewUrlParser: true, useUnifiedTopology: true} , (error, client) => {