Add log filename to config

This commit is contained in:
jar3b
2016-03-15 12:59:33 +03:00
parent 255f895993
commit 356bcf74c4
4 changed files with 7 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
class basic:
logging = False
logfile = ""
class sphinx_conf:

View File

@@ -15,6 +15,9 @@ class App(BottleCL):
self._factory = FiasFactory()
def get_app(self):
return self._app
def init_routes(self):
self.add_route(r'/expand/<aoid:re:[\w]{8}(-[\w]{4}){3}-[\w]{12}>', self.__expand)
self.add_route(r'/normalize/<aoid:re:[\w]{8}(-[\w]{4}){3}-[\w]{12}>', self.__normalize)