ln_gateway::rpc::rpc_server

Function v1_routes

source
fn v1_routes(gateway: Arc<Gateway>, task_group: TaskGroup) -> Router
Expand description

Gateway Webserver Routes. The gateway supports three types of routes

  • Always Authenticated: these routes always require a Bearer token. Used by gateway administrators.
  • Authenticated after config: these routes are unauthenticated before configuring the gateway to allow the user to set a password. After setting the password, they become authenticated.
  • Un-authenticated: anyone can request these routes. Used by fedimint clients.