gctools icon indicating copy to clipboard operation
gctools copied to clipboard

Add check to validate API urls

Open PaulAdamDavis opened this issue 2 years ago • 0 comments

The Ghost Admin API client needs the base URL for a site. If a path like example.ghost.io/ghost/api/admin is added, the tools fail.

A validation step should be added in both the interactive prompt and CLI to ensure a supplied URL is valid before continuing.

PaulAdamDavis avatar Oct 03 '22 15:10 PaulAdamDavis