Skip to content

Commit 3cdda39

Browse files
docs
1 parent 019efb3 commit 3cdda39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/core/blueprint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def blueprint_name(name):
5454
if "index" in name:
5555
name = str(name).replace("index", "")
5656

57+
""" remove the last . in the string it it ends with a .
58+
for the url structure must follow the flask routing format
59+
it should be /model/method instead of /model/method/
60+
"""
5761
if name[-1:] == ".":
5862
name = name[:-1]
5963
http_name = str(name).replace(".", "/")

0 commit comments

Comments
 (0)