Commit f7a0d6e9 authored by malkoG's avatar malkoG
Browse files

Update integration.md

parent 30c13e54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -326,13 +326,13 @@ export class AppModule implements NestModule {
        return {
          request: req,
          response: res,
          url: new URL(req.url, `${req.protocol}://${req.get('host')}`),
          url: new URL(req.url, process.env.FEDERATION_ORIGIN),
        };
      },
    );

    // Apply middleware to all routes except auth endpoints
    consumer.apply(fedifyMiddleware)
    consumer.apply(fedifyMiddleware).forRoutes({ path: '*', method: RequestMethod.ALL });
  }
}
~~~~