Created
November 23, 2022 17:23
-
-
Save carlosm27/1276b2ac4345dd3bdf0a7ad718841911 to your computer and use it in GitHub Desktop.
Serving File
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 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