Shared some APIs between server and admin