From e68543d1d9c8bb5cbe67c16e014369d8247f44ec Mon Sep 17 00:00:00 2001 From: uwaa Date: Mon, 4 Nov 2024 14:54:57 +0000 Subject: [PATCH] fix status for subpath example --- HTTP.Example/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTTP.Example/Program.cs b/HTTP.Example/Program.cs index acbdc4d..5b45488 100644 --- a/HTTP.Example/Program.cs +++ b/HTTP.Example/Program.cs @@ -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());