1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#![allow(dead_code)]
//! Library for the backend system of the `eingang` tool. Further, only used for
//! declaration of modules and configuration settings.

// Configuration
pub const HOST: &str = "127.0.0.1";
pub const PORT: &str = "8081";
pub const STORAGE: &str = "/tmp/db.json";
pub const FRONTEND_HOST: &str = "http://localhost";
pub const FRONTEND_PORT: &str = "8080";

pub const BASE_FOLDER: &str = "/tmp";
pub const THREAD_FOLDER: &str = "threads";
pub const NOTE_FOLDER: &str = "notes";
pub const TASK_FOLDER: &str = "tasks";

// Modules
pub mod io;
pub mod routes;