mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #291 from YunoHost/fix-703-dont-expose-yunohost-api-version
[fix] Remove version from api
This commit is contained in:
commit
18d20c4347
1 changed files with 0 additions and 2 deletions
|
@ -201,12 +201,10 @@ if __name__ == '__main__':
|
||||||
_init_moulinette(opts.use_websocket, opts.debug, opts.verbose)
|
_init_moulinette(opts.use_websocket, opts.debug, opts.verbose)
|
||||||
|
|
||||||
# Run the server
|
# Run the server
|
||||||
from yunohost.utils.packages import ynh_packages_version
|
|
||||||
ret = moulinette.api(
|
ret = moulinette.api(
|
||||||
_retrieve_namespaces(),
|
_retrieve_namespaces(),
|
||||||
host=opts.host, port=opts.port, routes={
|
host=opts.host, port=opts.port, routes={
|
||||||
('GET', '/installed'): is_installed,
|
('GET', '/installed'): is_installed,
|
||||||
('GET', '/version'): ynh_packages_version,
|
|
||||||
}, use_cache=opts.use_cache, use_websocket=opts.use_websocket
|
}, use_cache=opts.use_cache, use_websocket=opts.use_websocket
|
||||||
)
|
)
|
||||||
sys.exit(ret)
|
sys.exit(ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue