Controller helper to get instances of DeviceApiWeb from Rails controllers.
It is meant to detect devices without passing any User-Agent, headers or Client side properties. They will be transparently used from the request object.
Method to get an instance of DeviceApiWeb from a controller. It internally accesses the request object to get the headers and cookies we need for device detection.