Refactor: Fixed wrong get/post handling