Skip to content

Commit 52a1009

Browse files
add swagger _2
1 parent 2a4af38 commit 52a1009

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

simplyblock_web/auth_middleware.py

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
def token_required(f):
1111
@wraps(f)
1212
def decorated(*args, **kwargs):
13+
14+
if request.method == "GET" and request.path.startswith("/swagger"):
15+
return f(*args, **kwargs)
16+
1317
cluster_id = None
1418
cluster_secret = None
1519
if "Authorization" in request.headers:

0 commit comments

Comments
 (0)