Add frontend and backend routes method