feat: expose cms_type/WordPress credentials and published_url in API responses

This commit is contained in:
Doar Mihai
2026-07-19 16:51:15 +03:00
parent 80423301c4
commit 5501b93686
4 changed files with 27 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ class PostResource extends JsonResource
'body' => $this->body,
'status' => $this->status,
'scheduled_at' => $this->scheduled_at,
'published_url' => $this->published_url,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
+4 -1
View File
@@ -14,8 +14,11 @@ class SiteResource extends JsonResource
'name' => $this->name,
'url' => $this->url,
'description' => $this->description,
'cms_type' => $this->cms_type,
'wp_username' => $this->wp_username,
'wp_app_password' => $this->wp_app_password,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}
}