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 { describeRoute } from 'hono-openapi'
|
||||||
|
|
||||||
import charadesWords from '../../static/charades.json'
|
import charadesWords from '../../static/charades.json'
|
||||||
|
import communityBoard from '../../static/community-board.json'
|
||||||
import {
|
import {
|
||||||
BareString,
|
BareString,
|
||||||
idParam,
|
idParam,
|
||||||
@@ -121,12 +122,12 @@ export const gameplayRoutes = new Hono<App>({ strict: false })
|
|||||||
tags: ['Gameplay'],
|
tags: ['Gameplay'],
|
||||||
summary: 'The current community board',
|
summary: 'The current community board',
|
||||||
description:
|
description:
|
||||||
'The rotating community board on the home screen. Not hydrated yet, so it is an ' +
|
'The rotating community board on the home screen — featured player, featured room ' +
|
||||||
'empty object.',
|
'group, announcement and image strips. Served verbatim from a static blob.',
|
||||||
responses: { 200: json(JsonObject, 'An empty object') },
|
responses: { 200: json(JsonObject, 'The community board') },
|
||||||
}),
|
}),
|
||||||
(c) => c.json({})
|
(c) => c.json(communityBoard)
|
||||||
) // TODO: hydrate from JSON/communityboard.json
|
)
|
||||||
.get(
|
.get(
|
||||||
'/api/playerevents/v1/all',
|
'/api/playerevents/v1/all',
|
||||||
describeRoute({
|
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