DeepPass2 API call
()
| 220 | |
| 221 | @app.route('/api/deeppass2', methods=['POST']) |
| 222 | async def deeppass_scanning(): |
| 223 | """DeepPass2 API call""" |
| 224 | doc = request.data.decode('utf-8') |
| 225 | try: |
| 226 | secrets = await scan_secret(doc) |
| 227 | return jsonify({'Success':secrets}) |
| 228 | except Exception as e: |
| 229 | return jsonify({'error':f'Document counld not be scanned. Error {e}.'}) |
| 230 | |
| 231 | |
| 232 |
nothing calls this directly
no test coverage detected