tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
add path for xcvr endpoints and postprofile responses
moth11.net
8 months ago
5e0988a4
c6ac2893
+7
-2
2 changed files
expand all
collapse all
unified
split
nginx
xcvr.conf
server
internal
handler
xcvrHandlers.go
+1
-1
nginx/xcvr.conf
···
9
ssl_prefer_server_ciphers on;
10
ssl_ciphers HIGH:!aNULL:!MD5;
11
12
-
location ~ ^/(xrpc|lrc|meta|oauth)/ {
13
proxy_pass http://127.0.0.1:8080;
14
proxy_http_version 1.1;
15
proxy_set_header Upgrade $http_upgrade;
···
9
ssl_prefer_server_ciphers on;
10
ssl_ciphers HIGH:!aNULL:!MD5;
11
12
+
location ~ ^/(xrpc|xcvr|lrc|meta|oauth)/ {
13
proxy_pass http://127.0.0.1:8080;
14
proxy_http_version 1.1;
15
proxy_set_header Upgrade $http_upgrade;
+6
-1
server/internal/handler/xcvrHandlers.go
···
44
pu.Color = p.Color
45
pu.UpdateColor = true
46
}
47
-
h.db.UpdateProfile(pu, r.Context())
0
0
0
0
0
48
}
···
44
pu.Color = p.Color
45
pu.UpdateColor = true
46
}
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)
53
}