Move server into api.