geocoding fixes
This commit is contained in:
@@ -45,6 +45,17 @@ router.post(
|
||||
representativesController.refreshPostalCode
|
||||
);
|
||||
|
||||
// Geocoding endpoint (proxy to Nominatim)
|
||||
router.post(
|
||||
'/geocode',
|
||||
rateLimiter.general,
|
||||
[
|
||||
body('address').notEmpty().withMessage('Address is required')
|
||||
],
|
||||
handleValidationErrors,
|
||||
representativesController.geocodeAddress
|
||||
);
|
||||
|
||||
// Email endpoints
|
||||
router.post(
|
||||
'/emails/preview',
|
||||
|
||||
Reference in New Issue
Block a user