peer-group-grading/crates/backend/src/controller/template.rs
Mika f20802682a
Some checks failed
ci/woodpecker/push/check_fmt Pipeline failed
update_project endpoint and DTOs (#29)
Reviewed-on: #29
Co-authored-by: Mika <mika.bomm@outlook.com>
Co-committed-by: Mika <mika.bomm@outlook.com>
2025-04-03 09:55:04 +02:00

34 lines
625 B
Rust

use actix_web::{Responder, delete, get, post, put};
pub fn setup(cfg: &mut actix_web::web::ServiceConfig) {
cfg.service(get_templates)
.service(get_template)
.service(create_template)
.service(update_template)
.service(delete_template);
}
#[get("")]
async fn get_templates() -> impl Responder {
""
}
#[get("/{id}")]
async fn get_template() -> impl Responder {
""
}
#[post("")]
async fn create_template() -> impl Responder {
""
}
#[put("")]
async fn update_template() -> impl Responder {
""
}
#[delete("/{id}")]
async fn delete_template() -> impl Responder {
""
}