@@ -616,7 +616,7 @@ pub async fn reset<S: NodeDelegate + ControlStateDelegate + Authorization>(
616616 host_type,
617617 } ) : Query < ResetDatabaseQueryParams > ,
618618 Extension ( auth) : Extension < SpacetimeAuth > ,
619- program_bytes : Option < Bytes > ,
619+ program_bytes : Bytes ,
620620) -> axum:: response:: Result < axum:: Json < PublishResult > > {
621621 let database_identity = name_or_identity. resolve ( & ctx) . await ?;
622622 let database = worker_ctx_find_database ( & ctx, & database_identity)
@@ -631,7 +631,7 @@ pub async fn reset<S: NodeDelegate + ControlStateDelegate + Authorization>(
631631 & auth. claims . identity ,
632632 DatabaseResetDef {
633633 database_identity,
634- program_bytes,
634+ program_bytes : Some ( program_bytes ) ,
635635 num_replicas,
636636 host_type : Some ( host_type) ,
637637 } ,
@@ -716,7 +716,7 @@ pub async fn publish<S: NodeDelegate + ControlStateDelegate + Authorization>(
716716 host_type,
717717 } ) ,
718718 Extension ( auth) ,
719- Some ( program_bytes) ,
719+ program_bytes,
720720 )
721721 . await ;
722722 }
@@ -1244,7 +1244,7 @@ where
12441244 . route ( "/names" , self . names_put )
12451245 . route ( "/identity" , self . identity_get )
12461246 . route ( "/subscribe" , self . subscribe_get )
1247- . route ( "/call/: reducer" , self . call_reducer_procedure_post )
1247+ . route ( "/call/{ reducer} " , self . call_reducer_procedure_post )
12481248 . route ( "/schema" , self . schema_get )
12491249 . route ( "/logs" , self . logs_get )
12501250 . route ( "/sql" , self . sql_post )
@@ -1254,7 +1254,7 @@ where
12541254
12551255 axum:: Router :: new ( )
12561256 . route ( "/" , self . root_post )
1257- . nest ( "/: name_or_identity" , db_router)
1257+ . nest ( "/{ name_or_identity} " , db_router)
12581258 . route_layer ( axum:: middleware:: from_fn_with_state ( ctx, anon_auth_middleware :: < S > ) )
12591259 }
12601260}
0 commit comments