@אברהם-מנס להוסיף פרמטר query set, לדוגמה mode
ואז לפיו להפעיל מתוך הdoPost את הפונקציה הנכונה
דוגמה:
function firstFunc() {} function otherFunc() {} function doPost(e) { const { mode } = e.parameter; switch (mode) { case '1': firstFunc(); break; case '2': otherFunc(); break; default: throw new Error('Unknown mode'); } }