From cd4ba1f3cd101aa5acac0d3507bb9c2ddf3d9ed3 Mon Sep 17 00:00:00 2001 From: joajfreitas Date: Fri, 22 Dec 2023 19:39:27 +0000 Subject: [PATCH] update --- marcador2/src/schema.rs | 6 +++++- marcador2/src/server.rs | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/marcador2/src/schema.rs b/marcador2/src/schema.rs index 1536ded..51ba8cb 100644 --- a/marcador2/src/schema.rs +++ b/marcador2/src/schema.rs @@ -26,4 +26,8 @@ diesel::table! { diesel::joinable!(bookmarks_tags -> bookmarks (bookmark_id)); diesel::joinable!(bookmarks_tags -> tags (tag_id)); -diesel::allow_tables_to_appear_in_same_query!(bookmarks, bookmarks_tags, tags,); +diesel::allow_tables_to_appear_in_same_query!( + bookmarks, + bookmarks_tags, + tags, +); diff --git a/marcador2/src/server.rs b/marcador2/src/server.rs index 2c4c8eb..2a05be4 100644 --- a/marcador2/src/server.rs +++ b/marcador2/src/server.rs @@ -40,9 +40,9 @@ async fn async_server() -> std::io::Result<()> { .app_data(web::Data::new(State { local_proxy: LocalProxy {}, })) - .route("/list", web::get().to(endpoint_list)) - .route("/add", web::post().to(endpoint_add)) - .route("/delete", web::post().to(endpoint_delete)) + .route("/marcador/list", web::get().to(endpoint_list)) + .route("/marcador/add", web::post().to(endpoint_add)) + .route("/marcador/delete", web::post().to(endpoint_delete)) }) .bind(("0.0.0.0", 8080))? .run()