feat: expose cms_type/WordPress credentials and published_url in API responses
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user