Skip to content

Commit a7f7e63

Browse files
authored
Fix Flask Admin with API rules (#1945)
1 parent 8db5d9a commit a7f7e63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pygeoapi/flask_app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@
7373
static_folder=STATIC_FOLDER,
7474
url_prefix=API_RULES.get_url_prefix('flask')
7575
)
76-
ADMIN_BLUEPRINT = Blueprint('admin', __name__, static_folder=STATIC_FOLDER)
76+
ADMIN_BLUEPRINT = Blueprint(
77+
'admin',
78+
__name__,
79+
static_folder=STATIC_FOLDER,
80+
url_prefix=API_RULES.get_url_prefix('flask')
81+
)
7782

7883
# CORS: optionally enable from config.
7984
if CONFIG['server'].get('cors', False):

0 commit comments

Comments
 (0)