Created
January 3, 2022 07:27
-
-
Save Goldziher/0b3482f7badf1a8a3b062cd95549b32f to your computer and use it in GitHub Desktop.
Simple app example
This file contains 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 starlite import Starlite, MediaType, get | |
@get(path="/health-check", media_type=MediaType.TEXT) | |
def health_check() -> str: | |
return "healthy" | |
app = Starlite(route_handlers=[health_check]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment