Compare commits
3 commits
9ea6a9c56a
...
987748159a
Author | SHA1 | Date | |
---|---|---|---|
987748159a | |||
2b69e03c03 | |||
70a0575d08 |
2 changed files with 239 additions and 246 deletions
479
Cargo.lock
generated
479
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -538,6 +538,10 @@ pub struct Authorization {
|
|||
|
||||
#[async_std::main]
|
||||
async fn main() -> Result<()> {
|
||||
#[cfg(debug_assertions)]
|
||||
log::with_level(log::LevelFilter::Debug);
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
log::with_level(log::LevelFilter::Error);
|
||||
|
||||
let mut conf_file =
|
||||
|
@ -573,7 +577,7 @@ async fn main() -> Result<()> {
|
|||
app.at("/new-account").get(create_account_endpoint);
|
||||
app.at("/metrics").get(metrics_endpoint);
|
||||
|
||||
auto_serve_dir!(app, "/static", "static", 51200);
|
||||
auto_serve_dir!(app, "/static", "static");
|
||||
|
||||
println!("Server started at {}", &bind_address);
|
||||
|
||||
|
|
Loading…
Reference in a new issue