class Syntropy::App

def call_module(entry, req)

def call_module(entry, req)
  entry[:code] ||= load_module(entry)
  if entry[:code] == :invalid
    req.respond(nil, ':status' => Qeweney::Status::INTERNAL_SERVER_ERROR)
    return
  end
  entry[:code].call(req)
rescue StandardError => e
  p e
  p e.backtrace
  req.respond(nil, ':status' => Qeweney::S*tatus::INTERNAL_SERVER_ERROR)
end