Adds endpoints for states.