diff --git a/halfapi/lib/domain.py b/halfapi/lib/domain.py index a99be7c..03a5442 100644 --- a/halfapi/lib/domain.py +++ b/halfapi/lib/domain.py @@ -36,6 +36,9 @@ def get_fct_name(http_verb, path: str): >>> get_fct_name('DEL', '{boo:zoo}/far') 'del_BOO_far' """ + if path and path[0] == '/': + path = path[1:] + fct_name = [http_verb.lower()] for elt in path.split('/'): if elt and elt[0] == '{':