import {Controller, Get, Post} from '@nestjs/common'; import {AppService} from './app.service'; import {XCookieAccountDto} from "./x-poster/dto/x-cookie-account.dto"; import {XPosterRouterService} from "./x-poster/x-poster.router.service"; import {Context} from "node:vm"; import {XCacheService} from "./x-cache/x-cache.service"; @Controller() export class AppController { constructor( private readonly appService: AppService, private readonly xPosterRouterService: XPosterRouterService, private readonly cache: XCacheService ) { } @Get() getHello() { return this.xPosterRouterService.verifyCookie(); } @Get('/x') setXCookies(dto: XCookieAccountDto) { return this.cache.getCacheTwRefreshToken(); } }