소스 검색

accept both GET and POST for /

Son NK 5 년 전
부모
커밋
0327f755a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      server.py

+ 1 - 1
server.py

@@ -195,7 +195,7 @@ def register_blueprints(app: Flask):
 
 
 def set_index_page(app):
-    @app.route("/")
+    @app.route("/", methods=["GET", "POST"])
     def index():
         if current_user.is_authenticated:
             return redirect(url_for("dashboard.index"))