apidaora icon indicating copy to clipboard operation
apidaora copied to clipboard

appdaora list of functions

Open sugizo opened this issue 4 years ago • 0 comments

e.g.

@route.get('/blank')
def blank():
    return f'blank'

@route.get('/args/{name}/{age}')
def args(name: str, age: int):
    return f'args {name} {age}'

@route.get('/vars')
def vars(name: str, age: int):
    return f'vars {name} {age}'

app = appdaora([blank, args, vars] )

request it's nice to have if apidaora no need to redefine list of functions e.g. app = appdaora([blank, args, vars] ) nice to be app = appdaora()

tested with result TypeError: appdaora() missing 1 required positional argument: 'controllers'

background imagine if there are a lot of functions define def():, and need to redefine it again on app = appdaora() some of others frameworks no need to redefine list of functions again

thanks

sugizo avatar Feb 10 '21 22:02 sugizo