Skip to content

Commit

Permalink
I wanted to know the category/categories of my reverse lookups on a l…
Browse files Browse the repository at this point in the history
…on/lat. I realized it was already plumbed everywhere, except for the sanitizer entry in the middleware.

This patch adds the support for categories by passing a get parameter just like https://github.com/pelias/documentation/blob/master/place.md
  • Loading branch information
davetha committed Sep 1, 2023
1 parent c70c7b5 commit b779e14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanitizer/reverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module.exports.middleware = (_api_pelias_config) => {
geo_reverse: require('../sanitizer/_geo_reverse')(),
boundary_country: require('../sanitizer/_boundary_country')(),
request_language: require('../sanitizer/_request_language')(),
boundary_gid: require('../sanitizer/_boundary_gid')()
boundary_gid: require('../sanitizer/_boundary_gid')(),
categories: require('../sanitizer/_categories')()
};

// middleware
Expand Down

0 comments on commit b779e14

Please sign in to comment.