separate the controller into restful api