import { HomeScreen , ControlScreen , NotFoundScreen , ControlUseStatistics , ApplicationKey , QuestionList , QuestionCreate } from 'views' ; const routes = [ { path : "/" , component : HomeScreen , } , { path : "/control" , component : ControlScreen , login : true , childs : [ { path : "statistics" , index : false , component : ControlUseStatistics , } , { path : "appkeys" , component : ApplicationKey , } , { path : "questions" , component : QuestionList , } ] } , { path : "question/create" , component : QuestionCreate , login : true , } , { path : "*" , component : NotFoundScreen , } , ] ; export default routes ;