2020-11-12 21:13:28 +02:00
|
|
|
export default function(requestMethod: string, modelId: string = null) {
|
|
|
|
const options: any = { userSideValidation: true };
|
2020-11-05 18:58:23 +02:00
|
|
|
if (requestMethod === 'POST' && modelId) options.isNew = true;
|
|
|
|
return options;
|
|
|
|
}
|