Promote middleware and handlers to sample app.