Robyn can now serve static files and serve json response
from robyn import Robyn, static_file, jsonify
import asyncio
app = Robyn()
@app.get("/test")
async def test():
import os
path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "index.html"))
return static_file(path)
@app.post("/jsonify")
async def json():
return jsonify({"hello": "world"})