go-ssb-room/web/router
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.go fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
auth.go fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
complete.go Add a JSON endpoint for generating invites 2022-12-13 19:15:11 +01:00