@ducvnv/mirai-cms-role
Version:
<p align="center"> <a href="https://mirailabs.co/" target="blank"><img src="https://mirailabs.co/_next/static/media/logo.2a6685c4.svg" width="120" alt="Nest Logo" /></a> </p>
18 lines (17 loc) • 566 B
text/typescript
import {Controller, Get} from "@nestjs/common";
import {ApiOperation, ApiTags} from "@nestjs/swagger";
import {RouterService} from "../service/router.service";
('SyncRouter')
('packpage/syncRouter')
export class SyncRouterController {
constructor(private readonly routerService: RouterService) {
}
/**
* webhook task
*/
('/service')
({summary: 'Sync Router', description: 'Sync Router'})
async syncRouter(): Promise<any> {
return {status: await this.routerService.syncRouters()};
}
}