From 24b7c6ead79be57abe7bdb623431e1ef8ac58adc Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 19 Jun 2024 10:50:41 +0200 Subject: [PATCH] Updated usage examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67e9259..157ad13 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,12 @@ s.Get("/", func(ctx web.Context) error { // Parameter route s.Get("/blog/:post", func(ctx web.Context) error { - return ctx.String(ctx.Get("post")) + return ctx.String(ctx.Request().Param("post")) }) // Wildcard route s.Get("/images/*file", func(ctx web.Context) error { - return ctx.String(ctx.Get("file")) + return ctx.String(ctx.Request().Param("file")) }) s.Run(":8080")