tnc-ca-geo / animl-api

Backend for https://animl.camera
4 stars 0 forks source link

Abort user lookup if no x-selected-project header is available #225

Open alukach opened 3 days ago

alukach commented 3 days ago

Rather than supporting null curr_project values on the user, we will abort user lookup if no header is present.

Downstream, an error will be thrown:

https://github.com/tnc-ca-geo/animl-api/blob/d2efca993fd1107776272d06ff5c643435878bcb/src/api/handler.ts#L49-L51