backend for xcvr appview

add path for xcvr endpoints and postprofile responses

Changed files
+7 -2
nginx
server
internal
handler
+1 -1
nginx/xcvr.conf
··· 9 9 ssl_prefer_server_ciphers on; 10 10 ssl_ciphers HIGH:!aNULL:!MD5; 11 11 12 - location ~ ^/(xrpc|lrc|meta|oauth)/ { 12 + location ~ ^/(xrpc|xcvr|lrc|meta|oauth)/ { 13 13 proxy_pass http://127.0.0.1:8080; 14 14 proxy_http_version 1.1; 15 15 proxy_set_header Upgrade $http_upgrade;
+6 -1
server/internal/handler/xcvrHandlers.go
··· 44 44 pu.Color = p.Color 45 45 pu.UpdateColor = true 46 46 } 47 - h.db.UpdateProfile(pu, r.Context()) 47 + err = h.db.UpdateProfile(pu, r.Context()) 48 + if err != nil { 49 + h.serverError(w, errors.New("error updating profile: " + err.Error())) 50 + return 51 + } 52 + h.getProfileView(w,r) 48 53 }