Skip to content

Instantly share code, notes, and snippets.

@Sytten
Created March 31, 2019 00:28
Show Gist options
  • Save Sytten/8258b420467b5cd6b64df65aef6bff6d to your computer and use it in GitHub Desktop.
Save Sytten/8258b420467b5cd6b64df65aef6bff6d to your computer and use it in GitHub Desktop.
Flask-Rebar-1
from flask import Flask
from flask_rebar import Rebar
rebar = Rebar()
registry = rebar.create_handler_registry(prefix='/api')
def create_app() -> Flask:
app = Flask(__name__)
rebar.init_app(app)
return app
if __name__ == '__main__':
create_app().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment