WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
at main 35 lines 801 B view raw
1meta { 2 name: Get Theme Policy 3 type: http 4 seq: 3 5} 6 7get { 8 url: {{appview_url}}/api/theme-policy 9} 10 11assert { 12 res.status: eq 200 13 res.body.allowUserChoice: isDefined 14 res.body.availableThemes: isDefined 15} 16 17docs { 18 Returns the forum's theme policy: which themes are available to users, 19 the default light and dark themes, and whether users can pick their own. 20 21 Returns: 22 { 23 "defaultLightThemeUri": "at://did:plc:.../space.atbb.forum.theme/...", 24 "defaultDarkThemeUri": "at://did:plc:.../space.atbb.forum.theme/...", 25 "allowUserChoice": true, 26 "availableThemes": [ 27 { "uri": "at://did:plc:.../space.atbb.forum.theme/...", "cid": "bafy..." } 28 ] 29 } 30 31 Error codes: 32 - 404: No theme policy published yet 33 - 500: Server error 34 - 503: Database temporarily unavailable 35}