mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-10-26 18:05:28 +03:00 
			
		
		
		
	added debugging
This commit is contained in:
		
							parent
							
								
									61c9e47237
								
							
						
					
					
						commit
						d71b66d192
					
				@ -415,10 +415,17 @@ async def auth_v1_token(request: Request):
 | 
			
		||||
# NLS 3.4.0 - venv/lib/python3.12/site-packages/nls_services_lease/test/test_lease_single_controller.py
 | 
			
		||||
@app.post('/leasing/v1/config-token', description='request to get config token for lease operations')
 | 
			
		||||
async def leasing_v1_config_token(request: Request):
 | 
			
		||||
    j, cur_time = json_loads((await request.body()).decode('utf-8')), datetime.now(UTC)
 | 
			
		||||
 | 
			
		||||
    logging.debug('CALLED /leasing/v1/config-token')
 | 
			
		||||
    logging.debug(j)
 | 
			
		||||
 | 
			
		||||
    response = {
 | 
			
		||||
        "service_instance_ref": INSTANCE_REF,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    logging.debug(response)
 | 
			
		||||
 | 
			
		||||
    return JSONr(response)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user