I hope you do not mind I ask you here for some help with servant-auth here. I have been trying to work with the example I found there and I am still not able to make post call to
type Unprotected =
Raw
:<|> "login"
:> ReqBody '[JSON] Login
:> PostNoContent '[JSON] (Headers '[Header "Set-Cookie" SetCookie] NoContent)
login. I keep getting "Only GET or HEAD is supported" when I do a Post call to localhost:7249/login with {"username": "test", "password": "test"} in the body. How could we do a login with the api? I appreciate any help.
--
You received this message because you are subscribed to the Google Groups "haskell-servant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-servant+unsubscribe@googlegroups.com.
To post to this group, send email to haskell-servant@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-servant/7757dbac-d79d-495d-a2cc-a75c335d677f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.