added more endpoints for todo
Some checks failed
ci/woodpecker/push/check_fmt Pipeline failed

This commit is contained in:
Mika 2025-04-02 14:30:57 +02:00
parent ec08eb71f6
commit 693ce67806
5 changed files with 33 additions and 1 deletions

View file

@ -1,5 +1,6 @@
use actix_web::web::{self, ServiceConfig};
mod class;
mod group;
mod project;
mod template;

View file

@ -0,0 +1,21 @@
use actix_web::{Responder, delete, get, post};
#[get("")]
async fn get_classes() -> impl Responder {
""
}
#[get("/{id}")]
async fn get_class() -> impl Responder {
""
}
#[post("")]
async fn create_class() -> impl Responder {
""
}
#[delete("/{id}")]
async fn delete_class() -> impl Responder {
""
}

View file

@ -6,7 +6,7 @@ async fn get_groups() -> impl Responder {
}
#[get("/{project}")]
async fn get_projects_for_project() -> impl Responder {
async fn get_groups_for_project() -> impl Responder {
""
}

View file

@ -5,6 +5,11 @@ async fn get_templates() -> impl Responder {
""
}
#[get("/{id}")]
async fn get_template() -> impl Responder {
""
}
#[post("")]
async fn create_template() -> impl Responder {
""

View file

@ -5,6 +5,11 @@ async fn get_users() -> impl Responder {
""
}
#[get("/{id}")]
async fn get_class() -> impl Responder {
""
}
#[post("")]
async fn create_user() -> impl Responder {
""