-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added property and method based explicit route support
- Loading branch information
1 parent
3f01a54
commit 0e21dad
Showing
7 changed files
with
83 additions
and
10 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
...Test Data/Handlers/ExplicitRootHandler.cs → ...Handlers/ExplicitFieldRouteRootHandler.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
15 changes: 15 additions & 0 deletions
15
src/tinyweb.framework.tests/Test Data/Handlers/ExplicitMethodRouteRootHandler.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace tinyweb.framework.tests | ||
{ | ||
public class ExplicitMethodRouteRootHandler | ||
{ | ||
public Route Route() | ||
{ | ||
return new Route("/"); | ||
} | ||
|
||
public IResult Get() | ||
{ | ||
return new StringResult("Get"); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/tinyweb.framework.tests/Test Data/Handlers/ExplicitPropertyRouteRootHandler.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace tinyweb.framework.tests | ||
{ | ||
public class ExplicitPropertyRouteRootHandler | ||
{ | ||
public Route Route | ||
{ | ||
get { return new Route("/"); } | ||
} | ||
|
||
public IResult Get() | ||
{ | ||
return new StringResult("Get"); | ||
} | ||
} | ||
} |
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