summaryrefslogtreecommitdiff
path: root/test/Servant/Auth/SwaggerSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Servant/Auth/SwaggerSpec.hs')
-rw-r--r--test/Servant/Auth/SwaggerSpec.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Servant/Auth/SwaggerSpec.hs b/test/Servant/Auth/SwaggerSpec.hs
index d7fa530..eaf3b9c 100644
--- a/test/Servant/Auth/SwaggerSpec.hs
+++ b/test/Servant/Auth/SwaggerSpec.hs
@@ -3,6 +3,7 @@ module Servant.Auth.SwaggerSpec (spec) where
import Control.Lens
import Data.Proxy
import Servant.API
+import Servant.Auth
import Servant.Auth.Swagger
import Data.Swagger
import Servant.Swagger
@@ -23,7 +24,7 @@ spec = describe "HasSwagger instance" $ do
-- * API
-type API = "secure" :> Auth '[JWT] Int :> SecureAPI
+type API = "secure" :> Auth '[JWT, Cookie] Int :> SecureAPI
:<|> "insecure" :> InsecureAPI
type SecureAPI = Get '[JSON] Int :<|> ReqBody '[JSON] Int :> Post '[JSON] Int