This repository has been archived by the owner on Jun 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc907c0
commit aa4e8c2
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from aiohttp import web | ||
from routes import user_handler | ||
#from aiohttp import web | ||
#from .routes import user_handler | ||
|
||
app = web.Application() | ||
#app = web.Application() | ||
|
||
app.router.add_post("/user/{userid}", user_handler) | ||
#app.router.add_post("/user/{userid}", user_handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import aiohttp | ||
from gdpys.helpers.userhelper import user_helper | ||
#import aiohttp | ||
#from helpers.userhelper import user_helper | ||
|
||
async def user_handler(request:aiohttp.web.Request): | ||
user = request.match_info["userid"] | ||
print(type(user)) | ||
return user_helper.get_object(user) | ||
#async def user_handler(request:aiohttp.web.Request): | ||
# user = request.match_info["userid"] | ||
# print(type(user)) | ||
# return user_helper.get_object(user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters