Created
November 3, 2022 20:10
-
-
Save brandonchadlange/a56ad1a236dccc3df98378d609512208 to your computer and use it in GitHub Desktop.
Usage of the RouteHandler method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RouteHandler from './route-handler'; | |
export default RouteHandler({ | |
GET(req, res) { | |
// get logic goes in here | |
}, | |
POST(req, res) { | |
// post logic goes in here | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment