Size: 965 bytes.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// cs/apps/trycopilot.ai/api/auth.hh
#ifndef CS_APPS_TRYCOPILOT_AI_API_AUTH_HH
#define CS_APPS_TRYCOPILOT_AI_API_AUTH_HH

#include "cs/apps/trycopilot.ai/protos/auth.proto.hh"
#include "cs/net/proto/db/client.gpt.hh"
#include "cs/net/proto/db/database_base_url.gpt.hh"
#include "cs/net/rpc/rpc.hh"
#include "cs/util/di/context.gpt.hh"

namespace cs::apps::trycopilotai::api {

DECLARE_RPC(LoginRPC,
            cs::apps::trycopilotai::protos::LoginRequest,
            cs::apps::trycopilotai::protos::LoginResponse,
            CTX(cs::net::proto::db::DatabaseBaseUrl,
                cs::net::proto::db::IDatabaseClient));

DECLARE_RPC(LogoutRPC,
            cs::apps::trycopilotai::protos::LogoutRequest,
            cs::apps::trycopilotai::protos::LogoutResponse,
            CTX(cs::net::proto::db::DatabaseBaseUrl,
                cs::net::proto::db::IDatabaseClient));

}  // namespace cs::apps::trycopilotai::api

#endif  // CS_APPS_TRYCOPILOT_AI_API_AUTH_HH
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-1:8080 in 1ms.