adding an API for hosting app to set up the connection