chore: WebServer in config as vector for Multiples Webs

This commit is contained in:
Jesús Pérez Lorenzo 2021-09-07 14:58:48 +01:00
parent 899566c9a2
commit 2f305ffecf
4 changed files with 23 additions and 14 deletions

View file

@ -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 {