[release] 0.6.11

This commit is contained in:
Maxime Alves LIRMM 2022-03-14 15:16:06 +01:00
parent f7879c6388
commit de72e469d2
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# HalfAPI # HalfAPI
## 0.6.11
- Fix "request" has no "path_params" attribute bug
## 0.6.10 ## 0.6.10
- Add "x-out" field in HTTP headers when "out" parameters are specified for a - Add "x-out" field in HTTP headers when "out" parameters are specified for a

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
__version__ = '0.6.10' __version__ = '0.6.11'
def version(): def version():
return f'HalfAPI version:{__version__}' return f'HalfAPI version:{__version__}'

View File

@ -28,7 +28,9 @@ def connected(fct=public):
or not hasattr(req.user, 'is_authenticated')): or not hasattr(req.user, 'is_authenticated')):
return False return False
return fct(req, **{**kwargs, **req.path_params}) if hasattr(req, 'path_params'):
return fct(req, **{**kwargs, **req.path_params})
return fct(req, **{**kwargs})
return caller return caller