Created
November 21, 2017 06:13
-
-
Save mikeywaites/3f16c33f6ba601a74491a30b3248b8ed 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
| from arrested import ArrestedAPI | |
| from .users import users_resource | |
| from .characters import characters_resource | |
| from .middleware import basic_auth | |
| api_v1 = ArrestedAPI(url_prefix='/v1', before_all_hooks=[basic_auth]) | |
| api_v1.register_resource(users_resource, defer=True) | |
| api_v1.register_resource(characters_resource, defer=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment