2021-08-19 16:49:33 +02:00

10 lines
135 B
JavaScript

'use strict';
module.exports = async (ctx, next) => {
if (!ctx.state.user) {
return ctx.unauthorized();
}
await next();
};