This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const embed = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dotenv from 'dotenv'; | |
dotenv.config(); | |
global.File = typeof window === 'undefined' ? Object : window.File; | |
export default { | |
mode: 'universal', | |
router: { | |
middleware: ['auth'] | |
}, | |
messages: { | |
server_error: 'A server error has occurred.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { IsString } from "class-validator"; | |
export class TestDTO { | |
@IsString() public readonly string: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Body, | |
Controller, | |
Get, | |
Patch, | |
Post, | |
ValidationPipe | |
} from "@nestjs/common"; | |
import { TestDTO } from "../dtos/test.dto"; |