It would be nice if git stopped merging changes that I dont want it to
This commit is contained in:
parent
aaaa44761e
commit
08fdef42ce
11
src/index.js
11
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"))
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue