aticie / Mapper-Influences-Backend

0 stars 0 forks source link

Separating authorized and non authorized endpoints and use middleware #12

Closed 112batuhan closed 3 months ago

112batuhan commented 3 months ago

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.

112batuhan commented 3 months ago

Instead of this, It's better to use dependencies like we do now. I was too axum pilled.