Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { FaaSContext, func, inject, provide } from '@midwayjs/faas';
@provide()
@func('index.handler')
export class HelloService {
@inject()
ctx: FaaSContext; // context
async handler(event: any) {
return 'hello world';
}
}