Skip to content

Instantly share code, notes, and snippets.

@Sytten
Created March 31, 2019 00:34
Show Gist options
  • Save Sytten/1595c0abae42804f34f23c82298becba to your computer and use it in GitHub Desktop.
Save Sytten/1595c0abae42804f34f23c82298becba to your computer and use it in GitHub Desktop.
Flask-Rebar-3
from flask_rebar import errors
from .app import registry
from .schemas import HealthSchema
@registry.handles(rule="/health", method="GET", marshal_schema=HealthSchema())
def get_health():
return {"status": "OK"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment