mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
placeholder for community board
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user