Skip to content

Commit

Permalink
Merge pull request #93 from hyphacoop/http-fix
Browse files Browse the repository at this point in the history
fix: dynamically generate HTTP links in HTTP protocol sync method
  • Loading branch information
RangerMauve authored Nov 25, 2024
2 parents 62cb8fb + 18b3a93 commit 2770844
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 = `https://${id}`

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

Expand Down

0 comments on commit 2770844

Please sign in to comment.