auth modification

This commit is contained in:
Enstrayed
2025-04-18 22:36:15 -07:00
parent b917800eec
commit 9f96d82e53
2 changed files with 30 additions and 4 deletions

25
routes/auth.js Normal file
View File

@@ -0,0 +1,25 @@
import { app, db, globalConfig } from "../index.js" // Get globals from index
import { checkTokenNew } from "../liberals/auth.js"
import { logRequest } from "../liberals/logging.js"
app.get("/api/auth/whoami", (rreq,rres) => {
rres.send("Non functional endpoint")
})
app.get("/api/auth/login", (rreq,rres) => {
rres.send("Non functional endpoint")
})
app.get("/api/auth/callback", (rreq,rres) => {
rres.send("Non functional endpoint")
})
app.post("/api/auth/token", (rreq,rres) => {
rres.send("Non functional endpoint")
})
app.delete("/api/auth/token", (rreq,rres) => {
rres.send("Non functional endpoint")
})
export { app }