blob: a7b0e96c9fd376f84a37aa028b19a0847d066231 (
plain)
1
2
3
4
5
6
7
|
import { HookContext } from '@feathersjs/feathers';
export default async (context: HookContext): Promise<HookContext> => {
if (!context.params.user) throw new Error('This endpoint requires auth!');
return context;
};
|