33 lines
595 B
Rust
33 lines
595 B
Rust
use actix_web::{Responder, delete, get, post, put};
|
|
|
|
pub fn setup(cfg: &mut actix_web::web::ServiceConfig) {
|
|
cfg.service(get_groups)
|
|
.service(get_groups_for_project)
|
|
.service(create_group)
|
|
.service(delete_group);
|
|
}
|
|
|
|
#[get("")]
|
|
async fn get_groups() -> impl Responder {
|
|
""
|
|
}
|
|
|
|
#[get("/{project}")]
|
|
async fn get_groups_for_project() -> impl Responder {
|
|
""
|
|
}
|
|
|
|
#[post("")]
|
|
async fn create_group() -> impl Responder {
|
|
""
|
|
}
|
|
|
|
#[put("")]
|
|
async fn update_group() -> impl Responder {
|
|
""
|
|
}
|
|
|
|
#[delete("/{id}")]
|
|
async fn delete_group() -> impl Responder {
|
|
""
|
|
}
|