mild changes
This commit is contained in:
@@ -22,7 +22,7 @@ app.get("/static/*", (rreq,rres) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.get("/favicon.ico", (rreq,rres) => {
|
app.get("/favicon.ico", (rreq,rres) => {
|
||||||
rres.sendFile(process.cwd()+"/website/static/")
|
rres.sendFile(process.cwd()+"/website/static/bs.ico")
|
||||||
})
|
})
|
||||||
|
|
||||||
app.get("/posts/*", (rreq,rres) => {
|
app.get("/posts/*", (rreq,rres) => {
|
||||||
@@ -39,14 +39,18 @@ app.get("/posts/*", (rreq,rres) => {
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
app.post("/api/syncfrontpage", (rreq,rres) => {
|
app.get("/urltoolbox", (rreq,rres) => {
|
||||||
|
rres.send("Under construction")
|
||||||
|
})
|
||||||
|
|
||||||
|
app.post("/api/sync", (rreq,rres) => {
|
||||||
checkToken(rreq.query.auth,"fpupdate").then(checkResponse => {
|
checkToken(rreq.query.auth,"fpupdate").then(checkResponse => {
|
||||||
if (checkResponse === true) {
|
if (checkResponse === true) {
|
||||||
if (rreq.headers["x-github-event"] == "ping") {
|
if (rreq.headers["x-github-event"] == "ping") {
|
||||||
rres.sendStatus(200)
|
rres.sendStatus(200)
|
||||||
} else if (rreq.headers["x-github-event"] == "push") {
|
} else if (rreq.headers["x-github-event"] == "push") {
|
||||||
execSync("git submodule update --remote")
|
execSync("git pull")
|
||||||
logRequest(rres,rreq,200,"Synchronized Git submodules")
|
logRequest(rres,rreq,200,"Ran git pull")
|
||||||
rres.sendStatus(200)
|
rres.sendStatus(200)
|
||||||
} else {
|
} else {
|
||||||
logRequest(rres,rreq,400)
|
logRequest(rres,rreq,400)
|
||||||
|
|||||||
BIN
website/static/bs.ico
Normal file
BIN
website/static/bs.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -49,14 +49,10 @@ h2 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
gap: 1em;
|
||||||
|
|
||||||
.inlineheader > h2, a {
|
|
||||||
margin-right: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.inlineheader > span {
|
.inlineheader > span {
|
||||||
margin-right: 0.5rem;
|
|
||||||
padding: 0.2rem;
|
padding: 0.2rem;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #f06445;
|
background-color: #f06445;
|
||||||
|
|||||||
Reference in New Issue
Block a user