import { Injectable } from '@nestjs/common' ; import { IndexData } from '~/typings/data' ; import mock from './index.mock' ; @ Injectable ( ) export class ApiService { async index ( ) { return await Promise . resolve ( mock ) ; } }