atproto relay implementation in zig zlay.waow.tech
at main 20 lines 649 B view raw
1//! HTTP API module for the relay. 2//! 3//! re-exports the public API from the api/ subdirectory: 4//! router.zig — route dispatch, HttpContext 5//! xrpc.zig — AT Protocol sync endpoint handlers 6//! admin.zig — admin endpoint handlers 7//! http.zig — response helpers, query string parsing 8 9const router = @import("api/router.zig"); 10 11pub const HttpContext = router.HttpContext; 12pub const handleHttpRequest = router.handleHttpRequest; 13 14test { 15 @import("std").testing.refAllDecls(@This()); 16 _ = @import("api/http.zig"); 17 _ = @import("api/xrpc.zig"); 18 _ = @import("api/admin.zig"); 19 _ = @import("api/router.zig"); 20}