Skip to content

Commit

Permalink
lazy import admin API based on config (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Dec 20, 2024
1 parent f181d99 commit 77f3a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoapi/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import pygeoapi.api.processes as processes_api
import pygeoapi.api.stac as stac_api
import pygeoapi.api.tiles as tiles_api
import pygeoapi.admin as admin_api
from pygeoapi.openapi import load_openapi_document
from pygeoapi.config import get_config
from pygeoapi.util import get_mimetype, get_api_rules
Expand All @@ -58,6 +57,7 @@
API_RULES = get_api_rules(CONFIG)

if CONFIG['server'].get('admin'):
import pygeoapi.admin as admin_api
from pygeoapi.admin import Admin

STATIC_FOLDER = 'static'
Expand Down

0 comments on commit 77f3a55

Please sign in to comment.