create create/delete/view function for boats

This commit is contained in:
2023-07-22 13:57:17 +02:00
parent 6e61cce1ec
commit c0bb6d51de
8 changed files with 438 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ use sqlx::SqlitePool;
use crate::{model::log::Log, tera::Config};
pub mod boat;
pub mod planned_event;
pub mod user;
@@ -17,6 +18,7 @@ async fn rss(db: &State<SqlitePool>, key: Option<&str>, config: &State<Config>)
pub fn routes() -> Vec<Route> {
let mut ret = Vec::new();
ret.append(&mut user::routes());
ret.append(&mut boat::routes());
ret.append(&mut planned_event::routes());
ret.append(&mut routes![rss]);
ret