From 08fdef42ce6eea30477895de3e51ceda3b250da7 Mon Sep 17 00:00:00 2001 From: I-Have-An-Issue <34550332+I-Have-An-Issue@users.noreply.github.com> Date: Sun, 19 Feb 2023 16:33:10 -0500 Subject: [PATCH] It would be nice if git stopped merging changes that I dont want it to --- src/index.js | 11 ----------- src/lua/bodyshot.lua | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/index.js b/src/index.js index 10fd3cc..b9d6f0b 100644 --- a/src/index.js +++ b/src/index.js @@ -12,17 +12,6 @@ app.use(({ query }, response, next) => { next() }) -const validateQueryParam = (req, res, next) => { - const myQueryParam = process.env.accessKey; - if (req.query.hasOwnProperty(myQueryParam)) { - next(); - } else { - res.status(400).send(`This is just a normal site, nothing is located here...`); - } -} - -app.use(validateQueryParam); - app.use("/game/start", require("./routes/game/start.js")) app.use("/game/stop", require("./routes/game/stop.js")) app.use("/game/running", require("./routes/game/running.js")) diff --git a/src/lua/bodyshot.lua b/src/lua/bodyshot.lua index cfdf5f1..1af7359 100644 --- a/src/lua/bodyshot.lua +++ b/src/lua/bodyshot.lua @@ -8,7 +8,7 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl) game:GetService("ScriptContext").ScriptsDisabled = true local Player = game.Players:CreateLocalPlayer(0) -Player.CharacterAppearance = ("%s/Character?id=%d"):format(baseUrl, assetId) +Player.CharacterAppearance = ("%s/users/%d/character"):format(baseUrl, assetId) Player:LoadCharacter(false) game:GetService("RunService"):Run()