Skip to content

Commit

Permalink
Revert "lmao"
Browse files Browse the repository at this point in the history
This reverts commit a7f2db2.
  • Loading branch information
squi-ddy committed May 20, 2023
1 parent 7ce11fa commit 60a5ac4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@types/luxon": "^3.0.0",
"@types/node": "^18.7.6",
"@types/pg": "^8.6.4",
"@types/cookie-parser": "^1.4.2",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"dotenv": "^16.0.3",
Expand All @@ -35,6 +36,7 @@
"axios": "^1.1.3",
"bcrypt": "^5.0.1",
"body-parser": "^1.19.2",
"cookie-parser": "^1.4.6",
"compression": "^1.7.4",
"cors": "^2.8.5",
"esbuild": "^0.17.6",
Expand Down
9 changes: 9 additions & 0 deletions backend/src/api/api.www.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import supervend from "./supervend/supervend"
import astroview from "./astroview/astroview"
import lcs from "./lcs/lcs"
import prompt_artistry from "./prompt-artistry/prompt-artistry"
import cookieParser from "cookie-parser"

const apiRouter = express.Router()
apiRouter.use(cookieParser())
const apis: API[] = [supervend, astroview, lcs, prompt_artistry]

for (const api of apis) {
Expand All @@ -18,4 +20,11 @@ apiRouter.get("/", (_req, res): void => {
})
})

apiRouter.get("/ctf", (_req, res): void => {
console.log(_req.cookies)
res.json({
a:1
})
})

export { apiRouter }

0 comments on commit 60a5ac4

Please sign in to comment.