Skip to content

Commit 0a3b9f3

Browse files
Renamed default folder to docs
1 parent 2d2175e commit 0a3b9f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flask_apidoc/apidoc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def __init__(self, folder_path=None, url_path=None, app=None):
2929
self.url_path = url_path
3030

3131
if self.folder_path is None:
32-
self.folder_path = 'apidoc'
32+
self.folder_path = 'docs'
3333

3434
if self.url_path is None:
35-
self.url_path = '/apidoc'
35+
self.url_path = '/docs'
3636

3737
self.app = None
3838

@@ -46,8 +46,8 @@ def init_app(self, app):
4646
if not self.url_path.endswith('/'):
4747
url += '/'
4848

49-
app.add_url_rule(url, 'apidoc', self.__send_static_file)
50-
app.add_url_rule(url + '<path:path>', 'apidoc', self.__send_static_file)
49+
app.add_url_rule(url, 'docs', self.__send_static_file)
50+
app.add_url_rule(url + '<path:path>', 'docs', self.__send_static_file)
5151

5252
@lru_cache()
5353
def __get_project_info(self):

0 commit comments

Comments
 (0)