Rewrite endpoint "edit" dan "map"