Update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user