fix status for subpath example
This commit is contained in:
parent
e78896d16a
commit
e68543d1d9
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ static class Program
|
|||
{
|
||||
//The order here matters
|
||||
Router subpath = new Router();
|
||||
subpath.Add("foo", new StaticEndpoint(new NotFound("A \"foo\" example sub page")));
|
||||
subpath.Add("bar", new StaticEndpoint(new NotFound("A \"bar\" example sub page")));
|
||||
subpath.Add("foo", new StaticEndpoint(new OK("A \"foo\" example sub page")));
|
||||
subpath.Add("bar", new StaticEndpoint(new OK("A \"bar\" example sub page")));
|
||||
|
||||
Router router = new Router();
|
||||
router.Add(new CORS());
|
||||
|
|
Loading…
Reference in a new issue