chore: WebServer in config as vector for Multiples Webs
This commit is contained in:
parent
899566c9a2
commit
2f305ffecf
4 changed files with 23 additions and 14 deletions
|
|
@ -16,7 +16,7 @@ use warp::{
|
|||
use reqtasks::ReqTasks;
|
||||
use app_env::{
|
||||
appenv::AppEnv,
|
||||
config::Config,
|
||||
config::{Config, WebServer},
|
||||
module::Module,
|
||||
AppStore,
|
||||
// AppData,
|
||||
|
|
@ -95,6 +95,10 @@ impl ReqEnv {
|
|||
#[must_use]
|
||||
pub fn config(&self) -> Config {
|
||||
self.req.config()
|
||||
}
|
||||
#[must_use]
|
||||
pub fn websrvr(&self) -> WebServer {
|
||||
self.req.config().websrvrs[self.req.env().curr_web].to_owned()
|
||||
}
|
||||
#[must_use]
|
||||
pub fn module(&self) -> Module {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue