Revize fb987403
Přidáno uživatelem Michal Seják před asi 4 roky(ů)
app.py | ||
---|---|---|
20 | 20 |
return CertController.get_certificate_list() |
21 | 21 |
|
22 | 22 |
|
23 |
@app.route('/api/certificates/<id>', methods=["GET"]) |
|
24 |
def get_cert(id): |
|
25 |
return CertController.get_certificate_by_id(id) |
|
26 |
|
|
27 |
|
|
23 | 28 |
if __name__ == '__main__': |
24 | 29 |
host = "0.0.0.0" |
25 | 30 |
port = 5000 |
Také k dispozici: Unified diff
Re #8476 - Added and tested `get_certificate(id)`.