mirror of
https://github.com/actix/examples
synced 2025-03-14 16:56:25 +01:00
20 lines
580 B
Rust
20 lines
580 B
Rust
use actix_web::{web, Error, HttpResponse};
|
|
|
|
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())
|
|
}
|