79498905

Date: 2025-03-10 18:55:45
Score: 2
Natty:
Report link

But then in this case how do we know what router belongs to what route handler like if we just use export async function POST, how will we know to which router will this route handler be used? Like in express, we do something like app.post("/posting", (req, res)=> {}) and this tells us that this specific post route handler will we applied to /posting route, but in this above use case we cannot specify the route for the route handler of what comes after api/ for the specific POST or GET handelr??

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rishi