server add api for app