import { IRouter } from '../../http' ; import { DeprecationsGetResponse } from '../types' ; export const registerGetRoute = ( router ) => { router . get ( { path : '/' , validate : false , } , async ( context , req , res ) => { const deprecationsClient = context . core . deprecations . client ; const body = { deprecations : await deprecationsClient . getAllDeprecations ( ) , } ; return res . ok ( { body } ) ; } ) ; } ;