mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
9 lines
209 B
JavaScript
Executable File
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()
|
|
}
|
|
} |