Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Dec 22, 2023
1 parent d633317 commit cd4ba1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion marcador2/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
6 changes: 3 additions & 3 deletions marcador2/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cd4ba1f

Please sign in to comment.