Merge pull request #291 from YunoHost/fix-703-dont-expose-yunohost-api-version

[fix] Remove version from api
This commit is contained in:
Alexandre Aubin 2019-02-21 14:28:52 +01:00 committed by GitHub
commit 18d20c4347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,12 +201,10 @@ if __name__ == '__main__':
_init_moulinette(opts.use_websocket, opts.debug, opts.verbose)
# Run the server
from yunohost.utils.packages import ynh_packages_version
ret = moulinette.api(
_retrieve_namespaces(),
host=opts.host, port=opts.port, routes={
('GET', '/installed'): is_installed,
('GET', '/version'): ynh_packages_version,
}, use_cache=opts.use_cache, use_websocket=opts.use_websocket
)
sys.exit(ret)