Skip to content

Instantly share code, notes, and snippets.

View foxtacles's full-sized avatar
🏠
Working from home

Christian Semmler foxtacles

🏠
Working from home
View GitHub Profile
@Deathspike
Deathspike / Controller.ts
Last active March 28, 2023 08:06
nestjs response validation example (using express)
import * as app from '.';
import * as api from '@nestjs/common';
@api.Controller()
export class TestController {
@api.Get()
@app.ResponseValidator(app.TestDto)
get() {
return new app.TestDto();
}