placeholder for community board

This commit is contained in:
Devin Zuczek
2026-07-22 10:11:59 -04:00
parent 7ca7aa0666
commit 881663a4fe
2 changed files with 38 additions and 5 deletions
+6 -5
View File
@@ -2,6 +2,7 @@ import { Hono } from 'hono'
import { describeRoute } from 'hono-openapi'
import charadesWords from '../../static/charades.json'
import communityBoard from '../../static/community-board.json'
import {
BareString,
idParam,
@@ -121,12 +122,12 @@ export const gameplayRoutes = new Hono<App>({ strict: false })
tags: ['Gameplay'],
summary: 'The current community board',
description:
'The rotating community board on the home screen. Not hydrated yet, so it is an ' +
'empty object.',
responses: { 200: json(JsonObject, 'An empty object') },
'The rotating community board on the home screen — featured player, featured room ' +
'group, announcement and image strips. Served verbatim from a static blob.',
responses: { 200: json(JsonObject, 'The community board') },
}),
(c) => c.json({})
) // TODO: hydrate from JSON/communityboard.json
(c) => c.json(communityBoard)
)
.get(
'/api/playerevents/v1/all',
describeRoute({
+32
View File
@@ -0,0 +1,32 @@
{
"FeaturedPlayer": {
"Id": 1,
"TitleOverride": "",
"UrlOverride": null
},
"FeaturedRoomGroup": {
"FeaturedRoomGroupId": 2,
"Name": "Featured Rooms",
"Rooms": [
]
},
"CurrentAnnouncement": {
"Message": "Server powered by RecFlare",
"MoreInfoUrl": "https://github.com/djdevin/recflare"
},
"InstagramImages": [
{
"ImageName": "test.jpg",
"ImageUrl": "https://github.com/djdevin/recflare"
}
],
"Videos": [
{
"BlobName": "something.mp4",
"Title": "test",
"Description": "test description",
"ThumbnailBlobName": "something.jpg",
"SourceUrl": "https://www.youtube.com"
}
]
}