1
0
Fork 0
mirror of https://codeberg.org/Mo8it/git-webhook-client synced 2024-10-18 07:22:39 +00:00

Add https to base_url

This commit is contained in:
Mo 2022-10-12 16:26:46 +02:00
parent 1805ac94d4
commit 0f0e15e392
2 changed files with 3 additions and 3 deletions

View file

@ -63,5 +63,5 @@ pub fn trigger(
let new_hook_log_id = db::add_hook_log(&db_state.pool, &hook, &output); let new_hook_log_id = db::add_hook_log(&db_state.pool, &hook, &output);
format!("{}/{new_hook_log_id}", config_state.base_url_with_https) format!("{}/{}", config_state.base_url, new_hook_log_id)
} }

View file

@ -15,7 +15,7 @@ impl DB {
pub struct Config { pub struct Config {
pub secret: Vec<u8>, pub secret: Vec<u8>,
pub base_url_with_https: String, pub base_url: String,
pub hooks: Vec<config::Hook>, pub hooks: Vec<config::Hook>,
} }
@ -25,7 +25,7 @@ impl Config {
Self { Self {
secret: config.secret.as_bytes().to_owned(), secret: config.secret.as_bytes().to_owned(),
base_url_with_https: format!("https://{}", config.base_url), base_url: config.base_url,
hooks: config.hooks, hooks: config.hooks,
} }
} }