Can import basic data

This commit is contained in:
2023-08-18 11:05:32 +02:00
parent 3b5efb46cd
commit 57d919ee63
5 changed files with 182 additions and 22 deletions

View File

@ -196,6 +196,10 @@ async fn main() -> std::io::Result<()> {
"/family/{id}/data/export",
web::get().to(data_controller::export_family),
)
.route(
"/family/{id}/data/import",
web::put().to(data_controller::import_family),
)
// Photos controller
.route(
"/photo/{id}",