Skip to content

Commit

Permalink
Rename the healthcheck to health
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Feb 8, 2024
1 parent f57c234 commit f12e24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panther/panel/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
'': models_api,
'<index>/': documents_api,
'<index>/<document_id>/': single_document_api,
'healthcheck': healthcheck_api,
'health': healthcheck_api,
}
3 changes: 2 additions & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_init(self):

def test_load_configs(self):
from panther.configs import config
from panther.panel.apis import documents_api, models_api, single_document_api
from panther.panel.apis import documents_api, models_api, single_document_api, healthcheck_api

base_dir = Path(__name__).resolve().parent
secret_key = 'fHrIYx3yK0J_UG0K0zD6miLPNy1esoYXzVsvif6e7rY='
Expand Down Expand Up @@ -69,6 +69,7 @@ def test_load_configs(self):
'': documents_api,
'<document_id>': single_document_api,
},
'health': healthcheck_api
},
}
assert config['urls'] == urls
Expand Down

0 comments on commit f12e24b

Please sign in to comment.