fix: update all /prompts routes to /trackers
This commit is contained in:
parent
131a41037b
commit
17bfdf8f83
|
|
@ -2005,8 +2005,8 @@ func setupMux() http.Handler {
|
||||||
} else if strings.HasSuffix(path, "/permissions") { handlePermissions(w, r)
|
} else if strings.HasSuffix(path, "/permissions") { handlePermissions(w, r)
|
||||||
} else if strings.Contains(path, "/rbac/") { handleEditRBAC(w, r)
|
} else if strings.Contains(path, "/rbac/") { handleEditRBAC(w, r)
|
||||||
} else if strings.Contains(path, "/access/") { handleEditAccess(w, r)
|
} else if strings.Contains(path, "/access/") { handleEditAccess(w, r)
|
||||||
} else if strings.HasSuffix(path, "/prompts") { handleTrackers(w, r)
|
} else if strings.HasSuffix(path, "/trackers") { handleTrackers(w, r)
|
||||||
} else if strings.Contains(path, "/prompts/card/") { handleRenderTrackerCard(w, r)
|
} else if strings.Contains(path, "/trackers/card/") { handleRenderTrackerCard(w, r)
|
||||||
} else if strings.HasSuffix(path, "/trackers/respond") { handleTrackerRespond(w, r)
|
} else if strings.HasSuffix(path, "/trackers/respond") { handleTrackerRespond(w, r)
|
||||||
} else if strings.HasSuffix(path, "/upload") { if r.Method == "POST" { handleUploadPost(w, r) } else { handleUploadPage(w, r) }
|
} else if strings.HasSuffix(path, "/upload") { if r.Method == "POST" { handleUploadPost(w, r) } else { handleUploadPage(w, r) }
|
||||||
} else if strings.Contains(path, "/files/") && strings.HasSuffix(path, "/delete") { handleDeleteFile(w, r)
|
} else if strings.Contains(path, "/files/") && strings.HasSuffix(path, "/delete") { handleDeleteFile(w, r)
|
||||||
|
|
@ -2027,7 +2027,7 @@ func setupMux() http.Handler {
|
||||||
mux.HandleFunc("/api/v1/auth/send", handleAPISend)
|
mux.HandleFunc("/api/v1/auth/send", handleAPISend)
|
||||||
mux.HandleFunc("/api/v1/auth/verify", handleAPIVerify)
|
mux.HandleFunc("/api/v1/auth/verify", handleAPIVerify)
|
||||||
mux.HandleFunc("/api/v1/dashboard", handleAPIDashboard)
|
mux.HandleFunc("/api/v1/dashboard", handleAPIDashboard)
|
||||||
mux.HandleFunc("/api/v1/prompts", handleAPIPrompts)
|
mux.HandleFunc("/api/v1/trackers", handleAPIPrompts)
|
||||||
mux.HandleFunc("/api/v1/trackers/respond", handleAPITrackerRespond)
|
mux.HandleFunc("/api/v1/trackers/respond", handleAPITrackerRespond)
|
||||||
|
|
||||||
mux.HandleFunc("/api", handleAPI)
|
mux.HandleFunc("/api", handleAPI)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue