Delete is one of the reserved words in JavaScript however ExpressJS uses it as a method name. Their Basic Routing documentation shows:
app.METHOD(PATH, HANDLER)
Where:app is an instance of express. METHOD is an HTTP request method, in lowercase. PATH is a path on the server. HANDLER is the function executed when the route is matched.
And what I would like to do is export a delete method for my router, e.g. router.delete('/api/v1/:id', handler.delete);
however I don't want to further violate the language. Would it be bad practice to export a module.exports.delete = deleteHandler
?