2024-03-05 10:20:36 +00:00

9 lines
209 B
JavaScript
Executable File

import withAuthentication from "../withAuthentication"
export default (req, res, next) => {
if (req.headers?.authorization) {
withAuthentication(req, res, next)
} else {
next()
}
}