Hal De 3 vuotta sitten
vanhempi
sitoutus
c4f1b680e2
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -295,7 +295,8 @@ async def openapi():
   '''Generates JSON that conforms OpenAPI Specification
   '''
   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['PORT'])}]
   if app.config['EXTRA_API_URL'] is not None: