Skip to content

Commit

Permalink
feat(share): expose domains via GET
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs committed Jul 13, 2023
1 parent 0033dc3 commit ca32f6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/share/share.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { File, FileAttributes } from '../file/file.domain';
import { ShareDto } from './dto/share.dto';
import { Folder } from '../folder/folder.domain';
import { ReferralKey, User } from '../user/user.domain';
import getEnv from '../../config/configuration';

@ApiTags('Share')
@Controller('storage/share')
Expand All @@ -46,6 +47,15 @@ export class ShareController {
private notificationService: NotificationService,
) {}

@Get('/domains')
@Public()
@ApiOkResponse({
description: 'Get the domains for the sharing links',
})
getDomains() {
return { list: getEnv().apis.share.url.split(',') };
}

@Get('/list')
@HttpCode(200)
@ApiOperation({
Expand Down

0 comments on commit ca32f6b

Please sign in to comment.