1234567891011121314151617181920 |
- /*
- * @Author: lishengyin lishengyin@sz-sunwin.com
- * @Date: 2022-09-04 20:39:49
- * @LastEditors: lishengyin lishengyin@sz-sunwin.com
- * @LastEditTime: 2022-09-04 21:40:29
- * @FilePath: /gsd_check/controllers/apis_v1_version.cc
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- #include "apis_v1_version.h"
- using namespace apis::v1;
- // Add definition of your processing function here
- void version::getVersion(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback){
- HttpResponsePtr resp;
- resp = HttpResponse::newHttpResponse();
- resp->setBody(gsd::config::getPtr()->getVersion());
- callback(resp);
- }
|