Setting up public api routes