blob: 8c6c4afc3b8fa7fd1915e43452ab2a317cf31884 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import {type Express} from 'express'
import {type AppContext} from '../context.js'
import {handler} from './util.js'
export default function (ctx: AppContext, app: Express) {
return app.get(
'/',
handler(async (_req, res) => {
res.setHeader('Location', `https://${ctx.cfg.service.appHostname}`)
return res.status(301).end()
}),
)
}
|