import { Controller, Get, Param } from '@nestjs/common';
import { ShareService } from './share.service';

@Controller('v1/share')
export class ShareController {
  constructor(private readonly shareService: ShareService) {}

  @Get(':shareKey')
  getShare(@Param('shareKey') shareKey: string) {
    return this.shareService.getShare(shareKey);
  }
}
