mirror of
https://github.com/actix/examples
synced 2025-04-22 16:44:52 +02:00
20 lines
580 B
Rust
20 lines
580 B
Rust
use actix_web::{Error, HttpResponse, web};
|
|
|
|
use crate::common::{Part, Product};
|
|
|
|
pub async fn get_parts(_query: web::Query<Option<Part>>) -> Result<HttpResponse, Error> {
|
|
Ok(HttpResponse::Ok().finish())
|
|
}
|
|
|
|
pub async fn add_part(_new_part: web::Json<Product>) -> Result<HttpResponse, Error> {
|
|
Ok(HttpResponse::Ok().finish())
|
|
}
|
|
|
|
pub async fn get_part_detail(_id: web::Path<String>) -> Result<HttpResponse, Error> {
|
|
Ok(HttpResponse::Ok().finish())
|
|
}
|
|
|
|
pub async fn remove_part(_id: web::Path<String>) -> Result<HttpResponse, Error> {
|
|
Ok(HttpResponse::Ok().finish())
|
|
}
|