remove unused code

This commit is contained in:
cupcakearmy 2022-03-01 02:01:57 +01:00
parent 728ad56b33
commit 8517c20e6c
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

View File

@ -3,7 +3,6 @@ use serde::{Deserialize, Serialize};
use std::time::SystemTime;
use crate::note::{generate_id, Note, NoteInfo, NotePublic};
use crate::size::LIMIT;
use crate::store;
pub fn now() -> u32 {
@ -111,17 +110,6 @@ struct Status {
max_size: usize,
}
#[get("/status")]
async fn status() -> impl Responder {
println!("Limit: {}", *LIMIT);
return HttpResponse::Ok().json(Status {
version: option_env!("CARGO_PKG_VERSION")
.unwrap_or("Unknown")
.to_string(),
max_size: *LIMIT,
});
}
pub fn service() -> Scope {
web::scope("/notes")
.service(one)