13 lines
334 B
TypeScript
13 lines
334 B
TypeScript
import { Controller, Post } from '@nestjs/common';
|
|
import { RotationService } from './rotation.service';
|
|
|
|
@Controller('rotation')
|
|
export class RotationController {
|
|
constructor(private readonly rotationService: RotationService) {}
|
|
|
|
@Post('rotate-all')
|
|
async rotateAll() {
|
|
return this.rotationService.performRotation();
|
|
}
|
|
}
|