Giraffe.TokenRouter icon indicating copy to clipboard operation
Giraffe.TokenRouter copied to clipboard

TokenRouter needs explicit GET when POST is used

Open dustinmoris opened this issue 6 years ago • 4 comments

Originally created by @forki in https://github.com/giraffe-fsharp/Giraffe/issues/158


Reminder for @gerardtoconnor ;-)

sent you actual routes in screenshot. It's along the lines of:

 router notfound [
      subRoute "/api" [
           // get routes
           route "/hey" f
           POST [
              route "/there" f2
           ]
 ]

not working. but following is:

 router notfound [
      subRoute "/api" [
           GET [
               route "/hey" f
           ]
           POST [
              route "/there" f2
           ]
 ]

dustinmoris avatar Feb 09 '18 02:02 dustinmoris