const  {getAllCustomFields, deletCustomFieldTemplate, addCustomTemplate, addTemplate, viewCustomTemplate, getTemplateById, updateTemplate, DuplicateTemplate}  = require('../controllers/customFields')
const { getTemplateByid } = require('../models/customFieldTemplate')
const customFieldRoutes=[
    {
        method : "POST",
        url : "/webservice/custom-field/get-all-custom-fields", 
        handler : getAllCustomFields
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/delete',
        handler:deletCustomFieldTemplate
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/add',
        handler:addTemplate
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/view',
        handler:viewCustomTemplate
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/get-template-by-id',
        handler:getTemplateById
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/update',
        handler:updateTemplate
    },
    {
        method:'POST',
        url:'/webservice/custom-field-template/duplicate',
        handler:DuplicateTemplate
    },
 ]

module.exports=customFieldRoutes