mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
19 lines
534 B
TypeScript
19 lines
534 B
TypeScript
import { Servers as ServersRPC, HTTPTransport } from '@roleypoly/rpc'
|
|
import Bento, { JSONSerializer } from '@kayteh/bento'
|
|
|
|
// const o = {
|
|
// getCurrentUser: async (..._: any) => null,
|
|
// getServerSlug: async (..._: any) => null,
|
|
// checkAuthChallenge: async (..._: any) => false
|
|
// }
|
|
|
|
export const bento = new Bento()
|
|
export const transport = new HTTPTransport(
|
|
bento,
|
|
new JSONSerializer(),
|
|
process.env.RPC_URL || '/api/_rpc'
|
|
)
|
|
|
|
bento.transport = transport
|
|
|
|
export const Servers = bento.client(ServersRPC.ServersClient)
|