D
This commit is contained in:
+11
-3
@@ -1,15 +1,23 @@
|
||||
import {Controller, Get} from '@nestjs/common';
|
||||
import {Controller, Get, Post} from '@nestjs/common';
|
||||
import {AppService} from './app.service';
|
||||
import {XCookieAccountDto} from "./x-poster/dto/x-cookie-account.dto";
|
||||
import {XBrowserService} from "./x-poster/x-browser.service";
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
constructor(
|
||||
private readonly appService: AppService,
|
||||
private readonly xBrowserService: XBrowserService,
|
||||
) {
|
||||
}
|
||||
|
||||
@Get()
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
getHello() {
|
||||
return this.xBrowserService.verifyCookie();
|
||||
}
|
||||
|
||||
@Post('/set-x-cookies')
|
||||
setXCookies(dto: XCookieAccountDto) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user