mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 08:16:28 +00:00
remove unused code
This commit is contained in:
parent
728ad56b33
commit
8517c20e6c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user