From 18796631f4da1c6d0c8778094cdfe2ce742ca2a9 Mon Sep 17 00:00:00 2001 From: Maysam Torabi Date: Tue, 8 Oct 2024 13:22:24 +0200 Subject: [PATCH] gzip assets #248 --- lib/phoenix_swagger/plug/swaggerui.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_swagger/plug/swaggerui.ex b/lib/phoenix_swagger/plug/swaggerui.ex index 45506f9..dbcdf0c 100644 --- a/lib/phoenix_swagger/plug/swaggerui.ex +++ b/lib/phoenix_swagger/plug/swaggerui.ex @@ -22,7 +22,7 @@ defmodule PhoenixSwagger.Plug.SwaggerUI do alias Plug.Conn # Serve static assets before routing - plug(Plug.Static, at: "/", from: :phoenix_swagger) + plug(Plug.Static, at: "/", from: :phoenix_swagger, gzip: true) plug(:match) plug(:dispatch)