fix status for subpath example

This commit is contained in:
uwaa 2024-11-04 14:54:57 +00:00
parent e78896d16a
commit e68543d1d9

View file

@ -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());