import { Operation } from 'express-openapi' ; import IRecordedApiModel from '../../../api/recorded/IRecordedApiModel' ; import container from '../../../ModelContainer' ; import * as api from '../../api' ; export const post = async ( _req , res ) => { const recordedApiModel = container . get < IRecordedApiModel > ( 'IRecordedApiModel' ) ; try { await recordedApiModel . fileCleanup ( ) ; api . responseJSON ( res , 200 , { code : 200 } ) ; } catch ( err ) { api . responseServerError ( res , err . message ) ; } } ; post . apiDoc = { summary : '録画をクリーンアップ' , tags : [ 'recorded' ] , description : '録画をクリーンアップする' , responses : { 200 : { description : '録画をクリーンアップしました' , } , default : { description : '予期しないエラー' , content : { 'application/json' : { schema : { $ref : '#/components/schemas/Error' , } , } , } , } , } , } ;