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