FSharp.MinimalApi
FSharp.MinimalApi copied to clipboard
Example of using auth
I like your work - however I am having trouble figuring out how you intend to require auth on a given endpoint. Could your example include such a case?
So it was probbly quite simple. sorry bout that - my code looked like this and worked.
endpoints {
requireAuthorization
group "trigger"
post "/wantPlant" (plantEventEndpoint AddedWant)
post "/removeWant" (plantEventEndpoint RemovedWant)
}