You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user can then use the more specific app.get, app.post etc. and they can still use app.use when their handlers do the method switching themselfs.
import{createExpressHandler}from'@parralleldrive/feature-toggles'constnotFoundHandler=(res,req,next)=>{}consttodosHandler=(res,req,next)=>{}constfeatures=[]app.get('/todos',createExpressHandler(notFoundHandler,todosHandler,{requiredFeature: 'todos', features }))
function should be curried or auto-curried.
The text was updated successfully, but these errors were encountered:
See #37 for conversation.
Signature
The user can then use the more specific
app.get
,app.post
etc. and they can still useapp.use
when their handlers do the method switching themselfs.function should be curried or auto-curried.
The text was updated successfully, but these errors were encountered: