Skip to content

Commit cd53d3a

Browse files
Update main.py
1 parent 5fa8a0f commit cd53d3a

File tree

1 file changed

+2
-2
lines changed
  • frameworks/Python/aiohttp/app

1 file changed

+2
-2
lines changed

frameworks/Python/aiohttp/app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ async def db_ctx(app: web.Application):
6464

6565
def setup_routes(app):
6666
if CONNECTION_ORM:
67-
app.router.add_get('/json', json)
6867
app.router.add_get('/db', single_database_query_orm)
6968
app.router.add_get('/queries/{queries:.*}', multiple_database_queries_orm)
7069
app.router.add_get('/fortunes', fortunes)
7170
app.router.add_get('/updates/{queries:.*}', updates)
72-
app.router.add_get('/plaintext', plaintext)
7371
else:
72+
app.router.add_get('/json', json)
73+
app.router.add_get('/plaintext', plaintext)
7474
app.router.add_get('/db', single_database_query_raw)
7575
app.router.add_get('/queries/{queries:.*}', multiple_database_queries_raw)
7676
app.router.add_get('/fortunes', fortunes_raw)

0 commit comments

Comments
 (0)