ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
206 stars 15 forks source link

Route Inputs break with synchronous functions #101

Closed ZeroIntensity closed 5 months ago

ZeroIntensity commented 7 months ago

Is there an existing issue for this?

Current Behavior

Causes an exception complaining about not enough parameters (i.e. view is not sending the parameters to the route).

Expected Behavior

Should properly pass the inputs to the function.

Steps To Reproduce

from view import new_app

app = new_app()

@app.query("hello", str)
@app.get("/")
def index(hello: str):
    return hello

app.run()

Anything else

No response