aboutsummaryrefslogtreecommitdiff
path: root/server/registry/src/register.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/registry/src/register.rs')
-rw-r--r--server/registry/src/register.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/server/registry/src/register.rs b/server/registry/src/register.rs
index 173361ef..fb1c668a 100644
--- a/server/registry/src/register.rs
+++ b/server/registry/src/register.rs
@@ -1,21 +1,10 @@
use crate::Registry;
+use hurrycurry_protocol::registry::Submission;
use log::{debug, info};
use rocket::{http::hyper::Uri, post, serde::json::Json, State};
-use serde::Deserialize;
use std::{net::IpAddr, str::FromStr, sync::Arc, time::Instant};
use tokio::{net::lookup_host, sync::RwLock};
-#[derive(Debug, Deserialize)]
-pub(super) struct Submission {
- secret: u128,
- name: String,
- players: usize,
- last_game: i64,
- version: (usize, usize),
-
- uri: String,
-}
-
#[post("/v1/register", data = "<submission>")]
pub(super) async fn r_register<'a>(
client_addr: IpAddr,