Añadido middleware para soportar put y delete