This commit is contained in:
NAME
2026-05-15 00:22:30 +00:00
parent b57c9aa0bd
commit 65768643e0
8 changed files with 998 additions and 1313 deletions
+5 -2
View File
@@ -2,12 +2,15 @@ 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
) {
}
@@ -16,8 +19,8 @@ export class AppController {
return this.xPosterRouterService.verifyCookie();
}
@Post('/set-x-cookies')
@Get('/x')
setXCookies(dto: XCookieAccountDto) {
return this.cache.getCacheTwRefreshToken();
}
}