2021-04-29 12:03:54 +02:00

10 lines
135 B
JavaScript

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