|
|
@@ -13,7 +13,7 @@ export class OrgController {
|
|
|
@Get()
|
|
|
@Public()
|
|
|
async getOrgFromUrl(@Headers('host') host) {
|
|
|
- return await this.orgService.findByUrl(origin.replace(/^http(s?):\/\//, '').replace(/\/$/, ''))
|
|
|
+ return await this.orgService.findByUrl(host.replace(/^http(s?):\/\//, '').replace(/\/$/, ''))
|
|
|
}
|
|
|
|
|
|
@Get('/my')
|