This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/server/api/oauth2/wrap.js

6 lines
181 B
JavaScript
Raw Normal View History

import { error } from './response'
export default (fn, redir) => (req, res, next) =>
fn(req, res, next).catch(e =>
error(req, res, e, redir ? req.query.redirect_uri : null))