[MAJ] server/controller: refactoring of the retrieval of the action to perform