For HTTP endpoints declared via @endpoint like so:
@endpoint({ get: '/assets/{assetName}' })
async myMethod(assetName: string) {
....
}
It would be great to have a helper function to obtain the fully qualified URL of such an endpoint - incl. domain/hostname of the golem deployment. The existing createWebhook() helper already returns a FQ URL.
Ideally the helper function should support:
The helper method must be able to accept (and validate) named route args for both: path and query args.
Immediate use cases:
- serving assets and rendering these URLs in templates / html
- sending out signup / confirmation links via email
For HTTP endpoints declared via @endpoint like so:
It would be great to have a helper function to obtain the fully qualified URL of such an endpoint - incl. domain/hostname of the golem deployment. The existing createWebhook() helper already returns a FQ URL.
Ideally the helper function should support:
The helper method must be able to accept (and validate) named route args for both: path and query args.
Immediate use cases: