Rename Things, refactor some code

BREAKING: renames `binding_ip_addr` to `binding_ip` and `redis_connection_url` to `redis_url`.

Renames a lot of internals as well, but they are to many to mention.
This commit is contained in:
Milim 2023-07-03 19:30:25 +02:00
parent b18db5414a
commit 440216871d
17 changed files with 80 additions and 74 deletions

View file

@ -1,7 +1,7 @@
use std::net::TcpListener;
use handlebars::Handlebars;
use websurfx::{config_parser::parser::Config, run};
use websurfx::{config::parser::Config, run};
// Starts a new instance of the HTTP server, bound to a random available port
fn spawn_app() -> String {
@ -41,5 +41,5 @@ async fn test_index() {
assert_eq!(res.text().await.unwrap(), template);
}
// TODO: Write tests for tesing parameters for search function that if provided with something
// TODO: Write tests for testing parameters for search function that if provided with something
// other than u32 like alphabets and special characters than it should panic