handle method

Future<void> handle(
  1. Request req,
  2. ResponseContract res,
  3. NextFunction next
)

Implementation

Future<void> handle(
  Request req,
  ResponseContract res,
  NextFunction next,
) async {
  final origin = req.origin;
  Env.set('APP_URL', origin);

  await next();
}