--[[--
module_name =
request.get_module()

Returns the name of the module of the currently requested view or action.

--]]--

function request.get_module()
  if request._forward_processed then
    return request._forward.module or request._route.module or 'index'
  else
    return request._route.module or 'index'
  end
end
