Skip to content

Commit

Permalink
custom config model
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed Jul 10, 2024
1 parent 13691f4 commit d0070ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions tesk/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def init_app() -> FlaskApp:

foca = Foca(
config_file=config_path,
custom_config_model="tesk.custom_config.CustomConfig",
)
return foca.create_app()

Expand Down
12 changes: 12 additions & 0 deletions tesk/custom_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Custom configuration model for the FOCA app."""

from pydantic import BaseModel

from tesk.api.ga4gh.tes.models import Service


class CustomConfig(BaseModel):
"""Custom configuration model for the FOCA app."""

# Define custom configuration fields here
service_info: Service

0 comments on commit d0070ae

Please sign in to comment.