chore: add security
This commit is contained in:
@@ -4,11 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "backend/**"
|
- "backend/**/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "backend/**"
|
- "backend/**/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ func NewGeoService(redisClient *redis.Client, ctx context.Context) *GeoService {
|
|||||||
// GÉOCODAGE - API NOMINATIM
|
// GÉOCODAGE - API NOMINATIM
|
||||||
// ============================================
|
// ============================================
|
||||||
|
|
||||||
// GeocodeAddress convertit une adresse en coordonnées GPS
|
|
||||||
func (gs *GeoService) GeocodeAddress(address string) (*GeoLocation, error) {
|
func (gs *GeoService) GeocodeAddress(address string) (*GeoLocation, error) {
|
||||||
// 1. Vérifier le cache Redis
|
// 1. Vérifier le cache Redis
|
||||||
location, err := gs.getFromCache(address)
|
location, err := gs.getFromCache(address)
|
||||||
|
|||||||
Reference in New Issue
Block a user