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:
parent
6dca03fd0a
commit
f599d831c8
8 changed files with 740 additions and 6 deletions
11
endpoint.go
11
endpoint.go
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue