Fix bug for optional controller + add routes examples