Skip to content

Commit b90341a

Browse files
committed
Move Swagger web UI to /ui rather than /docs
1 parent 883b9a0 commit b90341a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deepaas/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
) + LINKS
5353

5454

55-
async def get_app(swagger=True, doc="/docs", prefix="",
55+
async def get_app(swagger=True, doc="/ui", prefix="",
5656
enable_train=True, enable_predict=True):
5757
"""Get the main app."""
5858
global APP

deepaas/cmd/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ def main():
103103
else:
104104
base = "http://{}:{}".format(CONF.listen_ip, CONF.listen_port)
105105
spec = "{}/swagger.json".format(base)
106-
docs = "{}/docs".format(base)
106+
docs = "{}/ui".format(base)
107107
v2 = "{}/v2".format(base)
108108

109109
print(INTRO)
110110
print(BANNER.format(docs, spec, v2))
111111

112112
log.info("Starting DEEPaaS version %s", deepaas.__version__)
113113

114-
app = api.get_app(doc="/docs")
114+
app = api.get_app(doc="/ui")
115115
web.run_app(
116116
app,
117117
host=CONF.listen_ip,

0 commit comments

Comments
 (0)