Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ...imports
import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common';
import { ServeHTMLMiddleware } from './app.middleware';
// ...module options
export class AppModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
.forRoutes({ path: '*', method: RequestMethod.GET});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment