#393 Added domain management on routes

Resolves #393