summaryrefslogtreecommitdiffstats
path: root/rust/src/endpoint_handlers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-10 21:39:45 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-10 21:39:45 -0800
commitfb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e (patch)
tree192f669a4cd0f2370aff9837954f64936d8cc5d6 /rust/src/endpoint_handlers.rs
parent9a83067d04c9648416b92fc8d7b8a542b0b9aa96 (diff)
downloadfatcat-fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e.tar.gz
fatcat-fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e.zip
WIP on annotations and changes
Diffstat (limited to 'rust/src/endpoint_handlers.rs')
-rw-r--r--rust/src/endpoint_handlers.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/src/endpoint_handlers.rs b/rust/src/endpoint_handlers.rs
index 01b5eb5c..79da2dbe 100644
--- a/rust/src/endpoint_handlers.rs
+++ b/rust/src/endpoint_handlers.rs
@@ -387,6 +387,8 @@ impl Server {
conn: &DbConn,
entity: models::Editgroup,
) -> Result<Editgroup> {
+ unimplemented!()
+ /*
let row: EditgroupRow = insert_into(editgroup::table)
.values((
editgroup::editor_id.eq(FatcatId::from_str(&entity.editor_id.unwrap())?.to_uuid()),
@@ -402,6 +404,7 @@ impl Server {
edits: None,
extra: row.extra_json,
})
+ */
}
pub fn get_editgroup_handler(
@@ -470,6 +473,9 @@ impl Server {
),
};
+ unimplemented!();
+ // XXX:
+ /*
let eg = Editgroup {
editgroup_id: Some(uuid2fcid(&row.id)),
editor_id: Some(uuid2fcid(&row.editor_id)),
@@ -478,6 +484,7 @@ impl Server {
extra: row.extra_json,
};
Ok(eg)
+ */
}
pub fn get_editor_handler(&self, conn: &DbConn, editor_id: FatcatId) -> Result<Editor> {