init server in http
Closed this issue · 2 comments
zp1ke commented
Now i have to:
- mount etc folder with vfs service.
- start the server.
I would like to do this (or something like this):
HttpServer.usingEtc('/path/to/etc').start();
The http takes care of vfs system in background. This way i think is easier.
gilbva commented
This maybe cannot be done becouse the mount concept is not from the http server, and it cannot be monopolise by it, the user needs to put the configuration for the etc in his main class, but i can maybe put some shortcuts to it in the Vfs api. Ill check this out for the next version.
gilbva commented
The VfsService now have some utility methods to help with the initial configuration.