go-ssb-room/web/handlers
boreq ab664aafc3 Add a JSON endpoint for generating invites
When running in open mode invites can be freely generated by accessing
/create-invite. This displays an HTML page which creates and displays an
invite to the user.

This commit adds an additional way of creating invites in open mode. A
POST request can be sent to the same /create-invite endpoint with the
Accept header set to application/json. This returns a JSON response
which contains an invite url.

The purpose of this change is to make automatic invite generation easier
in SSB clients.
2022-12-13 19:15:11 +01:00
..
admin Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
auth Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
aliases.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
aliases_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
auth_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
basic_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
http.go Add a JSON endpoint for generating invites 2022-12-13 19:15:11 +01:00
invites.go Add a JSON endpoint for generating invites 2022-12-13 19:15:11 +01:00
invites_test.go Add a JSON endpoint for generating invites 2022-12-13 19:15:11 +01:00
language_template.go fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
members_password.go test: hibp api changes 2022-11-07 21:14:26 +01:00
members_password_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
notices.go Add a way to list notices as JSON 2022-11-08 16:16:54 +01:00
notices_test.go Add a way to list notices as JSON 2022-11-08 16:16:54 +01:00
set_language_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00
setup_test.go Migrate to ssbc urls (#336) 2022-11-07 11:18:13 +02:00