Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a /versions endpoint #542

Merged
merged 5 commits into from
Dec 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more versions.
clokep committed Dec 28, 2022
commit 31f2b4cee542412508bcc51f7aa9c6d7cd4b25e6
14 changes: 13 additions & 1 deletion sydent/http/servlets/versions.py
Original file line number Diff line number Diff line change
@@ -29,7 +29,19 @@ def render_GET(self, request: Request) -> JsonDict:
"""
send_cors(request)

return {"versions": ["r0.1.0", "r0.2.0", "r0.2.1", "r0.3.0", "v1.1"]}
return {
"versions": [
"r0.1.0",
"r0.2.0",
"r0.2.1",
"r0.3.0",
"v1.1",
"v1.2",
"v1.3",
"v1.4",
"v1.5",
]
}

def render_OPTIONS(self, request: Request) -> bytes:
send_cors(request)