class FileTypeRestController {

    @RequestMapping(value = "/fileTypes/{fileTypeCode}", method = RequestMethod.DELETE)
    @Secured(SecurityFunctions.FN_FILE_TYPES_DELETE)
    public FileType deleteFileType(@PathVariable("fileTypeCode") String fileTypeCode)
    {
        return fileTypeService.deleteFileType(new FileTypeKey(fileTypeCode));
    }

}