aboutsummaryrefslogtreecommitdiff
path: root/src/http/Route.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-06-06 09:38:56 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-06-06 09:38:56 +0200
commitf39dfd01ab06cf92a3bcad75fcb175a8242ec1b1 (patch)
tree124bd340e15eb83743845323a1769d4d56e6fade /src/http/Route.zig
parent377e7ca748391bfeab28e8d399ef400b19682ed0 (diff)
Remove Server struct and replace it with single function
Diffstat (limited to 'src/http/Route.zig')
-rw-r--r--src/http/Route.zig2
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;
}