Attach the main two REST endpoints.