Skip to content

Instantly share code, notes, and snippets.

@Goldziher
Created January 3, 2022 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Goldziher/0b3482f7badf1a8a3b062cd95549b32f to your computer and use it in GitHub Desktop.
Save Goldziher/0b3482f7badf1a8a3b062cd95549b32f to your computer and use it in GitHub Desktop.
Simple app example
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