lib/volt/volt/server_setup/app.rb in volt-0.9.5.pre7 vs lib/volt/volt/server_setup/app.rb in volt-0.9.5.pre8

- old
+ new

@@ -8,18 +8,26 @@ end module Volt module ServerSetup module App + # The root url is where the volt app is mounted + attr_reader :root_url + # The app url is where the app folder (and sprockets) is mounted + attr_reader :app_url + def setup_paths # Load component paths @component_paths = ComponentPaths.new(@app_path) @component_paths.require_in_components(self) end def load_app_code setup_router require_http_controllers + + @root_url = '/' + @app_url = '/app' end def setup_router @router = Routes.new end \ No newline at end of file