From f39dfd01ab06cf92a3bcad75fcb175a8242ec1b1 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 6 Jun 2026 09:38:56 +0200 Subject: Remove Server struct and replace it with single function --- src/http/Route.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/Route.zig') diff --git a/src/http/Route.zig b/src/http/Route.zig index 7dd8ec0..b3f943d 100644 --- a/src/http/Route.zig +++ b/src/http/Route.zig @@ -19,7 +19,7 @@ pub const index: @This() = .{ .segments = &.{} }; pub fn fromAny(comptime route: anytype) @This() { var segments: []const Segment = &.{}; - if (route == .index) { + if (@TypeOf(route) == @EnumLiteral() and route == .index) { return index; } -- cgit v1.2.3-70-g09d2