Add breeding source detail page

A bunch of it is currently placeholders, but I got the map marker
working so I'm saving it.
This commit is contained in:
Eli Ribble 2025-11-20 14:56:34 +00:00
parent 6dca03fd0a
commit f599d831c8
No known key found for this signature in database
8 changed files with 740 additions and 6 deletions

View file

@ -233,9 +233,20 @@ func getSignin(w http.ResponseWriter, r *http.Request) {
errorCode := r.URL.Query().Get("error")
htmlSignin(w, errorCode)
}
func getSignup(w http.ResponseWriter, r *http.Request) {
htmlSignup(w, r.URL.Path)
}
func getSource(w http.ResponseWriter, r *http.Request, u *models.User) {
globalid := chi.URLParam(r, "globalid")
if globalid == "" {
respondError(w, "No globalid provided", nil, http.StatusBadRequest)
return
}
htmlSource(w, r, u, globalid)
}
func getVectorTiles(w http.ResponseWriter, r *http.Request, u *models.User) {
org_id := chi.URLParam(r, "org_id")
tileset_id := chi.URLParam(r, "tileset_id")