autocomplete: Move to main application
This commit is contained in:
parent
2a7119fcff
commit
4f03a83287
2 changed files with 3 additions and 9 deletions
|
|
@ -83,11 +83,3 @@ class AutocompleteResource:
|
|||
resp.content_type = falcon.MEDIA_JSON
|
||||
resp.media = response
|
||||
|
||||
|
||||
def get_application():
|
||||
app = falcon.App()
|
||||
app.add_route('/', AutocompleteResource())
|
||||
return app
|
||||
|
||||
application = get_application()
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ from lib import validFamily
|
|||
from query import Query, SymbolInstance
|
||||
from filters import get_filters
|
||||
from filters.utils import FilterContext
|
||||
|
||||
from autocomplete import AutocompleteResource
|
||||
|
||||
# Returns a Query class instance or None if project data directory does not exist
|
||||
# basedir: absolute path to parent directory of all project data directories, ex. "/srv/elixir-data/"
|
||||
|
|
@ -611,6 +611,8 @@ def get_application():
|
|||
app.add_route('/{project:project}/{version:version}/ident/{ident:ident}', IdentWithoutFamilyResource())
|
||||
app.add_route('/{project:project}/{version:version}/{family:family}/ident/{ident:ident}', IdentResource())
|
||||
|
||||
app.add_route('/acp', AutocompleteResource())
|
||||
|
||||
return app
|
||||
|
||||
application = get_application()
|
||||
|
|
|
|||
Loading…
Reference in a new issue