abedev / abe

API for Back-End (Haxe, NodeJS and Express)
54 stars 10 forks source link

@:path with just a parameter doesn't seem to work #71

Open ghost opened 8 years ago

ghost commented 8 years ago

Kris seems to have an issue with a route that's setup like this:

@:path("/product")
class MyRoute {
  @:post("/:myarg")
  function myFunc(myarg : String) { ... }
}

If he does POST /product/something it gets a 404, but if he changes the function meta to @:post("/x/:myarg") and does POST /product/x/something it works.

ghost commented 8 years ago

FYI @nuttycom / @pellunutty / @fponticelli / @mlms13

ghost commented 8 years ago

This is not a critical issue, as it's easily worked-around, but would be nice to fix.