class Syntropy::App
def respond_module(req, entry)
def respond_module(req, entry) entry[:proc] ||= load_module(entry) if entry[:proc] == :invalid req.respond(nil, ':status' => Qeweney::Status::INTERNAL_SERVER_ERROR) return end entry[:proc].call(req) rescue Syntropy::Error => e req.respond(nil, ':status' => e.http_status) rescue StandardError => e p e p e.backtrace req.respond(nil, ':status' => Qeweney::Status::INTERNAL_SERVER_ERROR) end