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
9
ssl_prefer_server_ciphers on;
10
10
ssl_ciphers HIGH:!aNULL:!MD5;
11
11
12
12
-
location ~ ^/(xrpc|lrc|meta|oauth)/ {
12
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
47
-
h.db.UpdateProfile(pu, r.Context())
47
47
+
err = h.db.UpdateProfile(pu, r.Context())
48
48
+
if err != nil {
49
49
+
h.serverError(w, errors.New("error updating profile: " + err.Error()))
50
50
+
return
51
51
+
}
52
52
+
h.getProfileView(w,r)
48
53
}