File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 17
17
18
18
@views .get ("/" )
19
19
def serve_index ():
20
+ """
21
+ Publicly accessible URL that displays a list of public rooms to a web browser. This isn't a
22
+ normal SOGS client endpoint, but rather a convenience web page for people who follow a SOGS
23
+ pseudo-URL.
24
+ """
20
25
rooms = get_accessible_rooms ()
21
26
if len (rooms ) == 0 :
22
27
return render_template ('setup.html' )
@@ -29,6 +34,11 @@ def serve_index():
29
34
30
35
@views .get ("/r/<Room:room>/" )
31
36
def view_room (room ):
37
+ """
38
+ Publicly accessible URL that displays a room (including recent messages) to a web browser. This
39
+ isn't a normal SOGS client endpoint, but rather a convenience web page for people who follow a
40
+ SOGS pseudo-URL, that displays the SOGS URL and QR code along with a list of recent messages.
41
+ """
32
42
if not room .default_read :
33
43
abort (http .FORBIDDEN )
34
44
@@ -41,6 +51,12 @@ def view_room(room):
41
51
42
52
@views .get ("/r/<Room:room>/invite.png" )
43
53
def serve_invite_qr (room ):
54
+ """
55
+ URL that generates a SOGS open group URL in QR code format for consumption by a mobile device.
56
+ This isn't a normal SOGS client endpoint, but rather part of the a convenience web page for
57
+ people who view the SOGS URL in a browser and want to scan the URL into another device (i.e.
58
+ mobile Session).
59
+ """
44
60
if not room .default_read :
45
61
abort (http .FORBIDDEN )
46
62
You can’t perform that action at this time.
0 commit comments