CaesarCloudSync commited on
Commit
83aac44
·
1 Parent(s): 211843b

Make Signup auth json Model mor general

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -959,7 +959,7 @@ async def physicsaqa(data : JSONStructure = None, authorization: str = Header(No
959
 
960
 
961
  @app.post('/signupapi') # POST
962
- async def signup(data: RevisionBankAuth):
963
  try:
964
  data = dict(data)
965
  print(data)
@@ -985,7 +985,7 @@ async def signup(data: RevisionBankAuth):
985
  error_detected = {"error": "error occured","errortype":type(ex), "error": str(ex)}
986
  return error_detected
987
  @app.post('/loginapi') # POST
988
- async def login(login_details: RevisionBankAuth): # ,authorization: str = Header(None)
989
  # Login API
990
  try:
991
  def provide_access_token(login_details,student=0):
 
959
 
960
 
961
  @app.post('/signupapi') # POST
962
+ async def signup(data: JSONStructure = None):
963
  try:
964
  data = dict(data)
965
  print(data)
 
985
  error_detected = {"error": "error occured","errortype":type(ex), "error": str(ex)}
986
  return error_detected
987
  @app.post('/loginapi') # POST
988
+ async def login(login_details: JSONStructure = None): # ,authorization: str = Header(None)
989
  # Login API
990
  try:
991
  def provide_access_token(login_details,student=0):