[relay] Join page: GET /join hands an invite link opened in a browser to the app
ci / check (pull_request) Has been cancelled
ci / check (pull_request) Has been cancelled
A static page for https://<relay>/join#<invite id>.<secret>, the link messengers make tappable. The fragment never reaches the relay. One button opens amicitia://invite?relay=<origin>#…; its only script and style are named by SHA-256 in a Content-Security-Policy of default-src 'none'; no-store, no-referrer, no cookie, framing refused. PROTOCOL.md §8 lists the route.
This commit is contained in:
@@ -38,6 +38,7 @@ pub fn router(state: AppState) -> Router {
|
||||
.route("/v0/invites", post(create_invite))
|
||||
.route("/v0/invites/{id}", get(claim_invite))
|
||||
.route("/version", get(version))
|
||||
.route("/join", get(crate::join::page))
|
||||
.layer(DefaultBodyLimit::max(MAX_JSON_BYTES))
|
||||
.merge(blob_routes)
|
||||
.with_state(state)
|
||||
|
||||
Reference in New Issue
Block a user