import { Application } from 'egg' ; export default ( app ) => { const { router , controller } = app ; router . get ( '/umlrenderer/:installationName/:owner/:repo' , controller . umlrenderer . get ) ; router . get ( '/docs/:installationName/:owner/:repo/community.svg' , controller . docs . communitySvgImage ) ; router . get ( '/installation/:installationName' , controller . installation . getInstallationConfig ) ; router . get ( '/component/:installationName' , controller . component . getComponentConfig ) ; router . get ( '/component/:installationName/:name/:version' , controller . component . getComponentConfigByNameVersion ) ; } ;