add base logic for get device and use param middleware
package.json merge