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