import { Controller, Get } from '@nestjs/common';
import { ResourceService } from './resource.service';

@Controller('resource')
export class ResourceController {

    constructor(
        private readonly resourceService: ResourceService,
    ) { }

    @Get()
    async getResource() {
        return this.resourceService.findAll();
    }
}
