FSharp.MinimalApi icon indicating copy to clipboard operation
FSharp.MinimalApi copied to clipboard

Example of using auth

Open C0DK opened this issue 11 months ago • 1 comments

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?

C0DK avatar Dec 22 '24 19:12 C0DK

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)
    }

C0DK avatar Dec 29 '24 19:12 C0DK