Skip to content

Commit

Permalink
feat: add version api
Browse files Browse the repository at this point in the history
  • Loading branch information
7086cmd committed Feb 19, 2024
1 parent 760a8c7 commit dba4a34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ async def get_cert():
"data": open('./rsa_public_key.pem', 'r').read()
}

@app.get('/api/version')
async def get_version():
return {
"status": "ok",
"code": 200,
"data": "0.1.0-alpha.1"
}

if __name__ == "__main__":
import uvicorn
uvicorn.run(app=app, host="0.0.0.0", port=8000)

0 comments on commit dba4a34

Please sign in to comment.