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
..
2022-08-22 09:10:09 +00:00
2022-11-07 11:18:13 +02:00
2022-11-07 11:18:13 +02:00
2022-11-07 11:18:13 +02:00
2022-11-07 11:18:13 +02:00
2022-11-07 11:18:13 +02:00
2022-11-07 11:18:13 +02:00