don't bother trying to make app name configurable actually
This commit is contained in:
parent
b84cb24ab9
commit
c41430bcdc
2 changed files with 3 additions and 5 deletions
|
@ -13,6 +13,8 @@ use actix_web::{
|
|||
use actix_web_actors::ws;
|
||||
use time::OffsetDateTime;
|
||||
|
||||
const APP_NAME: &'static str = "transbeam";
|
||||
|
||||
pub struct UploadedFile {
|
||||
name: String,
|
||||
size: usize,
|
||||
|
@ -43,10 +45,6 @@ fn storage_dir() -> PathBuf {
|
|||
PathBuf::from(std::env::var("STORAGE_DIR").unwrap_or_else(|_| String::from("storage")))
|
||||
}
|
||||
|
||||
fn app_name() -> String {
|
||||
std::env::var("APP_NAME").unwrap_or_else(|_| String::from("transbeam"))
|
||||
}
|
||||
|
||||
#[get("/upload")]
|
||||
async fn upload_socket(
|
||||
req: HttpRequest,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue