// install custom middleware to identify the domain
yoke.use(new DomainMiddleware(config));
// install the static file server
// note that since we are mounting under /static the root for the static middleware
// will always be prefixed with /static
yoke.use("/static", new Static("."));
// install the BasicAuth middleware
yoke.use("/admin", new BasicAuth(config.adminUsername, config.adminPassword));
// install body parser for /admin requests
yoke.use("/admin", new BodyParser());
// install router for admin requests