Skip to content

Instantly share code, notes, and snippets.

@brandonchadlange
Created November 3, 2022 20:10
Show Gist options
  • Save brandonchadlange/a56ad1a236dccc3df98378d609512208 to your computer and use it in GitHub Desktop.
Save brandonchadlange/a56ad1a236dccc3df98378d609512208 to your computer and use it in GitHub Desktop.
Usage of the RouteHandler method
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