This commit is contained in:
Aiden McClelland
2024-10-01 11:44:24 -06:00
committed by GitHub
parent 5146689158
commit 0c04802560
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ pub fn rpc_router<C: Context + Clone + AsRef<RpcContinuations>>(
server: HttpServer<C>,
) -> Router {
Router::new()
.route("/rpc/*path", post(server))
.route("/rpc/*path", any(server))
.route(
"/ws/rpc/:guid",
get({

View File

@@ -98,11 +98,11 @@ pub fn registry_api<C: Context>() -> ParentHandler<C> {
pub fn registry_router(ctx: RegistryContext) -> Router {
use axum::extract as x;
use axum::routing::{any, get, post};
use axum::routing::{any, get};
Router::new()
.route("/rpc/*path", {
let ctx = ctx.clone();
post(
any(
Server::new(move || ready(Ok(ctx.clone())), registry_api())
.middleware(Cors::new())
.middleware(Auth::new())