feat: add bounded binary API request bodies
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
use api_macros::api;
|
||||
|
||||
pub struct Response;
|
||||
|
||||
#[api]
|
||||
pub trait MultipleBinaryBodies {
|
||||
#[post("/payload")]
|
||||
async fn upload(
|
||||
&self,
|
||||
#[binary] first: api_macros::BinaryBody,
|
||||
#[binary] second: api_macros::BinaryBody,
|
||||
) -> Response;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user