mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:53:58 +01:00
modified stuff
This commit is contained in:
parent
10afb8bd5e
commit
f4a09515fe
13
api/core.py
13
api/core.py
|
@ -51,7 +51,7 @@ async def create_user(incoming_request: fastapi.Request):
|
|||
auth_error = await check_core_auth(incoming_request)
|
||||
|
||||
if auth_error:
|
||||
return auth_error
|
||||
return auth_error
|
||||
|
||||
try:
|
||||
payload = await incoming_request.json()
|
||||
|
@ -63,3 +63,14 @@ async def create_user(incoming_request: fastapi.Request):
|
|||
await new_user_webhook(user)
|
||||
|
||||
return user
|
||||
|
||||
if __name__ == '__main__':
|
||||
# new_user_webhook({
|
||||
# '_id': 'JUST_A_TEST_IGNORE_ME',
|
||||
# 'auth': {
|
||||
# 'discord': 123,
|
||||
# 'github': 'abc'
|
||||
# }
|
||||
# })
|
||||
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue