diff options
Diffstat (limited to 'src/http/Route.zig')
| -rw-r--r-- | src/http/Route.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |