Commit 1302002c authored by Paul Asmuth's avatar Paul Asmuth
Browse files

dir structure backport

parent 2f60384e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class FnordMetric::App < Sinatra::Base
  enable :session

  set :haml, :format => :html5
  set :views, ::File.expand_path('../../../../haml', __FILE__)
  set :views, ::File.expand_path('../../../../web/haml', __FILE__)

  def initialize(opts)
    @namespaces = FnordMetric.namespaces.clone
@@ -79,7 +79,7 @@ class FnordMetric::App < Sinatra::Base
  end

  get '/' do
  	::File.open(::File.expand_path("../../../../web/fnordmetric.html", __FILE__)).read
    redirect "#{path_prefix}/#{@namespaces.keys.first}"
  end

  get '/:namespace' do
+0 −0

File moved.

+0 −0

File moved.

+0 −0

File moved.

+0 −0

File moved.

Loading