Review parsing Eric and Luke.
Combined the config parser with Webserv class.
This commit is contained in:
@@ -34,9 +34,12 @@ int main(int ac, char **av)
|
||||
// Webserv serv(configParser.parse());
|
||||
// is this better or worse than using
|
||||
|
||||
// serv.init_virtual_servers();
|
||||
// serv.start();
|
||||
Webserv serv;
|
||||
|
||||
// serv.init_virtual_servers();
|
||||
serv.init_virtual_servers(servers);
|
||||
delete servers;
|
||||
serv.run();
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user