Support card/cal dav well-known endpoints
This commit is contained in:
@@ -10,6 +10,8 @@ async function get(req, res, next) {
|
||||
const [error, result] = await safe(wellknown.get(host, location));
|
||||
if (error) return next(new HttpError(404, error.message));
|
||||
|
||||
if (result.redirectTo) return res.redirect(302, result.redirectTo);
|
||||
|
||||
res.status(200).set('content-type', result.type).send(result.body);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user