Some cleaning + move "/version" endpoint to "/server/version".

This commit is contained in:
grossmj
2016-06-01 17:50:31 -06:00
parent 87f15eafe0
commit cd07a99118
18 changed files with 70 additions and 187 deletions

View File

@ -25,7 +25,7 @@ from aiohttp.web import HTTPConflict
class VersionHandler:
@Route.get(
r"/version",
r"/server/version",
description="Retrieve the server version number",
output=VERSION_SCHEMA)
def version(request, response):
@ -35,7 +35,7 @@ class VersionHandler:
response.json({"version": __version__, "local": local_server})
@Route.post(
r"/version",
r"/server/version",
description="Check if version is the same as the server",
output=VERSION_SCHEMA,
input=VERSION_SCHEMA,