Log more, try adding /
Test / test (push) Failing after 52s
Details
Test / test (push) Failing after 52s
Details
This commit is contained in:
parent
00876f08e9
commit
3ff16c58b2
|
|
@ -8,7 +8,7 @@ app.use(express.json())
|
|||
|
||||
app.get("/api", (req, res) => res.send("HI"))
|
||||
|
||||
app.post("/api/subscription", postSubscription)
|
||||
app.post("/api/subscription/", postSubscription)
|
||||
app.put("/api/subscription/:id/", putSubscription)
|
||||
|
||||
export default app
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ import type { Response, Request } from "express"
|
|||
import { createSubscription } from "../data/subscription"
|
||||
|
||||
export async function postSubscription(req: Request, res: Response) {
|
||||
console.log("Posted subscription")
|
||||
|
||||
const subscriptionBody = req.body
|
||||
|
||||
const { id: subscriptionId } = await createSubscription(subscriptionBody)
|
||||
|
|
|
|||
Loading…
Reference in New Issue