changed route name from 'index-types' to 'code'