Merge pull request #1670 from janhq/fix/server_api_reference

fix: server API reference
This commit is contained in:
hiro 2024-01-22 12:25:13 +07:00 committed by GitHub
commit 4cf6df1911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,11 +125,13 @@ const LocalServerScreen = () => {
> >
{serverEnabled ? 'Stop' : 'Start'} Server {serverEnabled ? 'Stop' : 'Start'} Server
</Button> </Button>
<Button block themes="secondaryBlue" asChild> {serverEnabled && (
<a href="https://jan.ai/api-reference/" target="_blank"> <Button block themes="secondaryBlue" asChild>
API Reference <ExternalLinkIcon size={20} className="ml-2" /> <a href={`http://${host}:${port}`} target="_blank">
</a> API Reference <ExternalLinkIcon size={20} className="ml-2" />
</Button> </a>
</Button>
)}
</div> </div>
</div> </div>