Skip to content

Commit 529a6db

Browse files
api_data.js is not longer manipulated
1 parent 3d5a07c commit 529a6db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flask_apidoc/apidoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def __send_static_file(self, path=None):
7676

7777
file_name = join(self.folder_path, path)
7878

79-
# Both api_project.js and api_data.js have the absolute url
79+
# the api_project.js has the absolute url
8080
# hard coded so we replace them by the current url.
81-
if path == 'api_project.js' or path == 'api_data.js':
81+
if path == 'api_project.js':
8282
return self.__send_api_file(file_name)
8383

8484
# Any other apidoc file is treated as a normal static file
8585
return self.app.send_static_file(file_name)
8686

87-
@lru_cache(maxsize=None, typed=True)
87+
@lru_cache(maxsize=None)
8888
def __send_api_file(self, file_name):
8989
"""
9090
Sends apidoc files from the apidoc folder to the browser.

0 commit comments

Comments
 (0)