import { inject , injectable } from 'inversify' ; import IRepositoryModel from '../IRepositoryModel' ; import IThumbnailApiModel from './IThumbnailApiModel' ; @ injectable ( ) export default class ThumbnailApiModel implements IThumbnailApiModel { private repository : IRepositoryModel ; constructor ( @ inject ( 'IRepositoryModel' ) repository ) { this . repository = repository ; } return public async cleanup ( ) { await this . repository . post ( '/thumbnails/cleanup' ) ; } }