Skip to content

Commit

Permalink
homepage just hosts openapi documentation instead of HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshawkes committed Apr 11, 2024
1 parent 1d47e48 commit 7e41214
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
8 changes: 1 addition & 7 deletions polytope_server/frontend/flask_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def create_handler(
SWAGGER_URL, tmp.name, config={"app_name": "Polytope", "spec": spec}
)
handler.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix=SWAGGER_URL)
handler.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix='/')

data_transfer = DataTransfer(request_store, staging)

Expand All @@ -92,13 +93,6 @@ def handle_error(error):
for code, ex in default_exceptions.items():
handler.errorhandler(code)(handle_error)

@handler.route("/", methods=["GET"])
def root():
this_dir = os.path.dirname(os.path.abspath(__file__)) + "/"
with open(this_dir + "web/index.html") as fh:
content = fh.read()
return content

def get_auth_header(request):
return request.headers.get("Authorization", "")

Expand Down
27 changes: 0 additions & 27 deletions polytope_server/frontend/web/css/style.css

This file was deleted.

38 changes: 0 additions & 38 deletions polytope_server/frontend/web/index.html

This file was deleted.

0 comments on commit 7e41214

Please sign in to comment.