mirror of
https://github.com/WGDashboard/WGDashboard-PRW.git
synced 2026-08-04 06:52:58 +00:00
feat: configurable loglevel
This commit is contained in:
@@ -4,10 +4,9 @@ import flask
|
||||
|
||||
def make_resp_obj(success: bool = True, message: str = "", data: dict = {}, http_code: int = 200) -> flask.wrappers.Response:
|
||||
response = flask.make_response({
|
||||
"status": success,
|
||||
"message": message,
|
||||
"status": success,
|
||||
"data": data
|
||||
}, http_code
|
||||
)
|
||||
}, http_code)
|
||||
|
||||
return response
|
||||
Reference in New Issue
Block a user