mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
14 lines
436 B
Text
14 lines
436 B
Text
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();
|
|
}
|
|
}
|