A SpaceTraders Agent
at main 414 B view raw
1const std = @import("std"); 2 3const st = @import("root.zig"); 4const Client = st.http.Client; 5 6const Response = st.http.Response; 7const Wrapper = st.models.Wrapper; 8const Query = st.models.Query; 9 10const ships = st.models.ships; 11 12pub fn listShips(cl: *Client, query: Query) !Response([]ships.Ship) { 13 return cl.get( 14 Wrapper([]ships.Ship), 15 "/my/ships{f}", 16 .{query}, 17 .agent, 18 ); 19}