add api in lib, and add customized api routes
include the grape api path into application, and add routes