Skip to content

Commit

Permalink
fix: docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmo00 committed Dec 25, 2023
1 parent 4a071fb commit 4399b2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flask_status/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@


class FlaskStatus:
"""Flask status - Add status ping route to flask application
```
FlaskStatus(app)
```
"""

def __init__(
self,
app: Flask | None = None,
Expand Down Expand Up @@ -45,12 +51,14 @@ def init_app(
@app.route(self.status_ping_url, methods=["GET"])
@authenticator
def status_ping():
"""Authenticated status ping endpoint"""
return jsonify(self.status_message), 200

return

@app.route(self.status_ping_url, methods=["GET"])
def status_ping():
"""Status ping endpoint"""
return jsonify(self.status_message), 200

def add_field(self, key: str, value: Any) -> None:
Expand Down

0 comments on commit 4399b2f

Please sign in to comment.