Form the server endpoints into an organized API