Skip to content

Instantly share code, notes, and snippets.

@carlosm27
Created November 23, 2022 17:23
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 carlosm27/1276b2ac4345dd3bdf0a7ad718841911 to your computer and use it in GitHub Desktop.
Save carlosm27/1276b2ac4345dd3bdf0a7ad718841911 to your computer and use it in GitHub Desktop.
Serving File
from robyn import Robyn, static_file
app = Robyn(__file__)
@app.get("/index")
async def get_page(request):
return static_file("./index.html")
app.start(port=5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment