make the success response with data Args: data (dict): the data of response
(data: Any)
| 62 | |
| 63 | |
| 64 | def success(data: Any) -> Response: |
| 65 | """make the success response with data |
| 66 | |
| 67 | Args: |
| 68 | data (dict): the data of response |
| 69 | """ |
| 70 | return jsonify(dict( |
| 71 | code=200, |
| 72 | data=data |
| 73 | )) |
| 74 | |
| 75 | |
| 76 | def error(msg: str) -> Response: |
no outgoing calls
no test coverage detected