Adding server-side controller and repository