An ATproto social media client -- with an independent Appview.
at main 14 lines 362 B view raw
1import {type Express} from 'express' 2 3import {type AppContext} from '../context.js' 4import {handler} from './util.js' 5 6export default function (ctx: AppContext, app: Express) { 7 return app.get( 8 '/', 9 handler(async (_req, res) => { 10 res.setHeader('Location', `https://${ctx.cfg.service.appHostname}`) 11 return res.status(301).end() 12 }), 13 ) 14}