[release] 0.6.11
This commit is contained in:
parent
f7879c6388
commit
de72e469d2
|
@ -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
|
||||||
|
|
|
@ -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__}'
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
if hasattr(req, 'path_params'):
|
||||||
return fct(req, **{**kwargs, **req.path_params})
|
return fct(req, **{**kwargs, **req.path_params})
|
||||||
|
return fct(req, **{**kwargs})
|
||||||
|
|
||||||
return caller
|
return caller
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue