Create detailController.js