import { Application } from 'egg' ; export default ( app ) => { const { controller , router } = app ; const apiRouter = router . namespace ( '/sms' ) ; api apiName apiGroup apiParam apiSuccess apiSuccess apiSuccess apiSuccessExample apiRouter . post ( '/' , controller . sms . sendMessage ) ; } ;