pull:初次提交
This commit is contained in:
14
n8n-n8n-1.109.2/scripts/backend-module/my-feature.controller.template
Executable file
14
n8n-n8n-1.109.2/scripts/backend-module/my-feature.controller.template
Executable file
@@ -0,0 +1,14 @@
|
||||
import { AuthenticatedRequest } from '@n8n/db';
|
||||
import { Get, RestController } from '@n8n/decorators';
|
||||
|
||||
import { MyFeatureService } from './my-feature.service';
|
||||
|
||||
@RestController('/my-feature')
|
||||
export class MyFeatureController {
|
||||
constructor(private readonly myFeatureService: MyFeatureService) {}
|
||||
|
||||
@Get('/summary')
|
||||
async getSummary(_req: AuthenticatedRequest, _res: Response) {
|
||||
return await this.myFeatureService.getSummary();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user