Skip to content

Commit

Permalink
fix: dynamically generate HTTP links in HTTP protocol sync method
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshthite committed Nov 23, 2024
1 parent 62cb8fb commit ca8de63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions protocols/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ export class HTTPProtocol implements Protocol<Static<typeof HTTPProtocolFields>>
}

async sync (id: string, folderPath: string, options?: SyncOptions, ctx?: Ctx): Promise<Static<typeof HTTPProtocolFields>> {
// TODO(protocol): stub
// Generate the actual HTTP link based on the site ID (domain)
const httpLink = `http://${id}`

// Return the dynamically generated HTTP link
return {
enabled: true,
link: 'example-link'
link: httpLink
}
}

Expand Down

0 comments on commit ca8de63

Please sign in to comment.