lib/spire/router.rb in spire-0.1.2 vs lib/spire/router.rb in spire-0.1.3
- old
+ new
@@ -41,12 +41,10 @@
end
def run
require "#{@base_path}/controllers/#{@controller_value}Controller"
@app = Kernel.const_get(@controller_value).new
- @return = {}
- @return = @app.method(@action_value).call
- Spire::Response.new(@return)
+ return @app.method(@action_value).call
end
def call(env)
self.disect(env)
response = self.route
\ No newline at end of file