This PR adds token authentication to all endpoints except api key endpoints and /helloworld. It also adds permission checks for PROPERTY_SEARCH (Admin and above) and VIEW_PIN (SuperAdmin only) on the /property/details api, so ensure that your user is present in the database with sufficient permissions to access this api correctly.
Note: Please run npm run db:migrate to obtain the necessary permissions in order for this to work!
Added token authentication to all endpoints except api key endpoints and /helloworld.
Added permission check for the PROPERTY_SEARCH and VIEW_PIN on the /property/details api.
This PR adds token authentication to all endpoints except api key endpoints and /helloworld. It also adds permission checks for PROPERTY_SEARCH (Admin and above) and VIEW_PIN (SuperAdmin only) on the /property/details api, so ensure that your user is present in the database with sufficient permissions to access this api correctly.
Note: Please run
npm run db:migrate
to obtain the necessary permissions in order for this to work!