Skip to content

Commit b896fab

Browse files
committed
heroku web server fix (encore)
1 parent e540f01 commit b896fab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
descriptor = SuggestionsDescriptor()
1919

2020

21+
@api.route('/suggestions')
2122
class SuggestionsApiDescriptor(Resource):
2223
wrap: SuggestionsApi = None
2324

@@ -56,9 +57,8 @@ async def run():
5657

5758
# create the api
5859
SuggestionsApiDescriptor.wrap = SuggestionsApi(searchEngine)
59-
api.add_resource(SuggestionsApiDescriptor, "/suggestions")
6060

61-
app.run(use_reloader=True)
61+
app.run()
6262

6363
if __name__ == '__main__':
6464

0 commit comments

Comments
 (0)