]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blobdiff - dhall/server/service/plugin/mkRequestTermination.dhall
dhall(upgrade): upgrade code to be compatible with dhall 1.21.0
[github/fretlink/ansible-kong-app.git] / dhall / server / service / plugin / mkRequestTermination.dhall
index aff538f3819782fc17767e9f2e4d263f252df210..1d047d707c2f0872094c0b55a37eb78bc2b47dcf 100644 (file)
@@ -1,20 +1,20 @@
-    let Plugin = ./Plugin.dhall
+let Plugin = ./Plugin.dhall
 
-in  let config = constructors ./Config.dhall
+let config = ./Config.dhall
 
 in    λ(statusCode : Natural)
-    → λ(contentType : Text)
-    → λ(body : Text)
-    →   { name =
-            "request-termination"
-        , config =
-            config.RequestTermination
-            { status_code =
-                statusCode
-            , content_type =
-                contentType
-            , body =
-                body
-            }
-        }
-      : Plugin
+       → λ(contentType : Text)
+       → λ(body : Text)
+       →   { name =
+                       "request-termination"
+               , config =
+                       config.RequestTermination
+                       { status_code =
+                               statusCode
+                       , content_type =
+                               contentType
+                       , body =
+                               body
+                       }
+               }
+         : Plugin