diff --git a/app/Http/Resources/AdminInstance.php b/app/Http/Resources/AdminInstance.php new file mode 100644 index 000000000..4a52e3481 --- /dev/null +++ b/app/Http/Resources/AdminInstance.php @@ -0,0 +1,31 @@ + $this->id, + 'domain' => $this->domain, + 'software' => $this->software, + 'unlisted' => (bool) $this->unlisted, + 'auto_cw' => (bool) $this->auto_cw, + 'banned' => (bool) $this->banned, + 'user_count' => $this->user_count, + 'status_count' => $this->status_count, + 'last_crawled_at' => $this->last_crawled_at, + 'actors_last_synced_at' => $this->actors_last_synced_at, + 'created_at' => $this->created_at, + ]; + } +}