add rich KML support, mitigate KML vulnerabilities
All checks were successful
pedestrian-simulator / build (push) Successful in 1m0s
All checks were successful
pedestrian-simulator / build (push) Successful in 1m0s
This commit is contained in:
@@ -66,6 +66,7 @@ func main() {
|
||||
user, err := GetUser(userID)
|
||||
if err == nil && user != nil {
|
||||
status["user"] = map[string]string{
|
||||
"id": user.FitbitUserID,
|
||||
"displayName": user.DisplayName,
|
||||
"avatarUrl": user.AvatarURL,
|
||||
}
|
||||
@@ -116,6 +117,7 @@ func main() {
|
||||
// 3. KML Management Endpoints
|
||||
http.HandleFunc("/api/kml/upload", RequireAuth(HandleKMLUpload))
|
||||
http.HandleFunc("/api/kml/list", RequireAuth(HandleKMLList))
|
||||
http.HandleFunc("/api/kml/edit", RequireAuth(HandleKMLEdit))
|
||||
http.HandleFunc("/api/kml/privacy", RequireAuth(HandleKMLPrivacyToggle))
|
||||
http.HandleFunc("/api/kml/vote", RequireAuth(HandleKMLVote))
|
||||
http.HandleFunc("/api/kml/delete", RequireAuth(HandleKMLDelete))
|
||||
|
||||
Reference in New Issue
Block a user