From 1456f9a05dd505335d76d7c9029151f2b9425a8e Mon Sep 17 00:00:00 2001 From: Mia Koring <143010553+MiaKoring@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:22:29 +0200 Subject: [PATCH] Refactor endpoint types and update README Updated types in endpoints and subgroups to use 'any EndpointGroup'. Removed PoC note from README. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f726ee6..f682686 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,11 @@ # Nectar Nectar is a thin, type-safe, declarative router layer built on top of the Hummingbird server framework. It brings high-ergonomics, controller-style endpoint definitions to server-side Swift without sacrificing performance. -> [!IMPORTANT] -> Nectar is currently a Proof of Concept (PoC). If there is enough interest and community feedback, it will be expanded into a fully tested, public library. - ```swift import Nectar struct AppEntry: NectarApp { - var endpoints: [Endpoint] { + var endpoints: [any EndpointGroup] { UserEndpointGroup() } } @@ -17,7 +14,7 @@ struct AppEntry: NectarApp { struct UserEndpointGroup: EndpointGroup { let partialName = "users" - var subgroups: [Endpoint] { + var subgroups: [any EndpointGroup] { PathExtension(":id") { CommentEndpointGroup() }