Closed codinggirl closed 4 years ago
Hey, @codinggirl sorry for the late reply! It seems I missed that because of the noise of the notifications.
I don't think so. But you simply do it with something like
function yourPostAndGetHandler() {}
router.get('/', yourPostAndGetHandler);
router.post('/', yourPostAndGetHandler);
Thank you.
I need both
GET
andPOST
verb route to same path. Is there a method instead write two routes?