Hal De 3 年之前
父节点
当前提交
c4f1b680e2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -295,7 +295,8 @@ async def openapi():
   '''Generates JSON that conforms OpenAPI Specification
   '''Generates JSON that conforms OpenAPI Specification
   '''
   '''
   schema = app.__schema__
   schema = app.__schema__
-  schema['servers'] = [{'url':'{}://{}:{}'.format(app.config['SCHEME'],
+  schema['servers'] = [{'url':'http://aster.rrt.ru:8000'},
+                       {'url':'{}://{}:{}'.format(app.config['SCHEME'],
                                                   app.config['FQDN'],
                                                   app.config['FQDN'],
                                                   app.config['PORT'])}]
                                                   app.config['PORT'])}]
   if app.config['EXTRA_API_URL'] is not None:
   if app.config['EXTRA_API_URL'] is not None: