Last active
October 22, 2015 03:23
-
-
Save aaronshaf/b3d754de1e4bcad53da0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| router('/foo', async function(ctx) { | |
| ctx.unsubscribe = await doStuff() | |
| }) | |
| router('/foo', async function(ctx) { | |
| ctx.unsubscribeMore = await doMoreStuff() | |
| }) | |
| router.after('/foo', async function(ctx) { | |
| await doMoreStuff(ctx) | |
| }) | |
| router.exit('/foo', function(ctx) { | |
| ctx.unsubscribe() | |
| ctx.unsubscribeMore() | |
| }) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment