From cf49211b7443b1337b67a0120ca8b183c3705d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Mon, 30 Mar 2020 19:43:37 +0200 Subject: [PATCH] WIP uploads --- src/main.rs | 9 +++++++++ src/static/client.sh | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d2e8fbe..b48578a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ #[macro_use] extern crate rocket; use rocket::State; use rocket::response::status::NotFound; +use rocket::Data; use rocket_contrib::json::Json; use serde_json::Value; @@ -103,6 +104,14 @@ fn edit_status(id: Uuid, status: String, shared: State, remote_addr Ok("Status changed".to_string()) } + + +#[post("/", data = "