add help at /

This commit is contained in:
CDN18 2024-11-28 18:24:57 +08:00
parent d55b987a39
commit 50c05846c0
Signed by: CDN
GPG key ID: 0C656827F9F80080

View file

@ -4,6 +4,10 @@ import { AppContext } from './config'
const makeRouter = (ctx: AppContext) => { const makeRouter = (ctx: AppContext) => {
const router = express.Router() const router = express.Router()
router.get('/', (_req, res) => {
res.send('This is a bsky feed for posts potentially related to Starset the band. To show up in the feed, just include the tag #starset in your post. Send any feedback or suggestions to @mirror.starset.fans.')
})
router.get('/.well-known/did.json', (_req, res) => { router.get('/.well-known/did.json', (_req, res) => {
if (!ctx.cfg.serviceDid.endsWith(ctx.cfg.hostname)) { if (!ctx.cfg.serviceDid.endsWith(ctx.cfg.hostname)) {
return res.sendStatus(404) return res.sendStatus(404)