Skip to content

Instantly share code, notes, and snippets.

View Texlo-Dev's full-sized avatar
🤡
Having the time of my life

Texlo Dev Texlo-Dev

🤡
Having the time of my life
View GitHub Profile
import {
Body,
Controller,
Get,
Patch,
Post,
ValidationPipe
} from "@nestjs/common";
import { TestDTO } from "../dtos/test.dto";
@Texlo-Dev
Texlo-Dev / test.dto.ts
Created December 9, 2018 13:02
Test DTO
import { IsString } from "class-validator";
export class TestDTO {
@IsString() public readonly string: string;
}
@Texlo-Dev
Texlo-Dev / nuxt.config.js
Created October 18, 2018 09:34
My Nuxt config file
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.',
const embed = 2