Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#109 - removed support for specifying optional params with a leading …
…question mark.
- Loading branch information
Showing
9 changed files
with
161 additions
and
233 deletions.
There are no files selected for viewing
18 changes: 0 additions & 18 deletions
18
src/AttributeRouting.Specs/Features/RouteConstraints.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 36 additions & 77 deletions
113
src/AttributeRouting.Specs/Features/RouteConstraints.feature.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 3 additions & 11 deletions
14
src/AttributeRouting.Specs/Features/RouteDefaults.feature.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
src/AttributeRouting.Specs/Subjects/RouteDefaultsController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using System.Web.Mvc; | ||
using AttributeRouting.Web.Mvc; | ||
|
||
namespace AttributeRouting.Specs.Subjects | ||
{ | ||
public class RouteDefaultsController : Controller | ||
{ | ||
[GET("InlineDefaults/{hello=sun}/{goodnight=moon}")] | ||
public ActionResult InlineDefaults() | ||
{ | ||
return Content(""); | ||
} | ||
|
||
[GET("Optionals/{p1?}/{?p2}/{?p3?}")] | ||
public ActionResult Optionals(string p1, string p2, string p3) | ||
{ | ||
return Content(""); | ||
} | ||
} | ||
using AttributeRouting.Web.Mvc; | ||
|
||
namespace AttributeRouting.Specs.Subjects | ||
{ | ||
public class RouteDefaultsController : Controller | ||
{ | ||
[GET("InlineDefaults/{hello=sun}/{goodnight=moon}")] | ||
public ActionResult InlineDefaults() | ||
{ | ||
return Content(""); | ||
} | ||
|
||
[GET("Optionals/{p1?}")] | ||
public ActionResult Optionals(string p1) | ||
{ | ||
return Content(""); | ||
} | ||
} | ||
} |
Oops, something went wrong.