mirror of
				https://github.com/simple-login/app.git
				synced 2025-10-31 02:26:34 +08:00 
			
		
		
		
	Ignore /git and /exception in flask-profiler
This commit is contained in:
		
							parent
							
								
									d3f8233844
								
							
						
					
					
						commit
						064e10771b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2,12 +2,12 @@ import os | |||
| import ssl | ||||
| 
 | ||||
| import arrow | ||||
| import flask_profiler | ||||
| import sentry_sdk | ||||
| from flask import Flask, redirect, url_for, render_template, request, jsonify | ||||
| from flask_admin import Admin | ||||
| from flask_cors import cross_origin | ||||
| from flask_login import current_user | ||||
| import flask_profiler | ||||
| from sentry_sdk.integrations.flask import FlaskIntegration | ||||
| 
 | ||||
| from app import paddle_utils | ||||
|  | @ -89,7 +89,7 @@ def create_app() -> Flask: | |||
|                 "username": "admin", | ||||
|                 "password": FLASK_PROFILER_PASSWORD, | ||||
|             }, | ||||
|             "ignore": ["^/static/.*"], | ||||
|             "ignore": ["^/static/.*", "/git", "/exception" ], | ||||
|         } | ||||
|         flask_profiler.init_app(app) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue