like talked with @aticie , to utilize middleware and have better status code (currently unauthorized users return 422, which should be 401 forbidden) when users are not authorized, we will split the api into two fastapi instances. One will be used to serve unauthorized endpoints, other will serve authorized ones.
like talked with @aticie , to utilize middleware and have better status code (currently unauthorized users return 422, which should be 401 forbidden) when users are not authorized, we will split the api into two fastapi instances. One will be used to serve unauthorized endpoints, other will serve authorized ones.