Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
username: string;
email: string;
}
@Injectable()
@ResourceConfiguration({
name: 'UserResource',
url: environment.apiUrl + 'user/:pk/',
pkAttr: 'pk',
instanceClass: User,
stripTrailingSlashes: false,
})
export class UserResource extends Resource {
@ResourceAction({
method: ResourceActionHttpMethod.GET,
isList: false,
invalidateCache: true,
urlSuffix: 'current/',
})
current: ResourceActionMethod;
}