From bc6aeaa834d666221171d302d4f101ce65608898 Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 9 Sep 2019 17:17:44 +0200 Subject: Refactoring some code to be more readable --- api/umosapi.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'api/umosapi.h') diff --git a/api/umosapi.h b/api/umosapi.h index a1765d7..3cb2b47 100644 --- a/api/umosapi.h +++ b/api/umosapi.h @@ -16,6 +16,8 @@ using namespace std; using json = nlohmann::json; +namespace UmosapiService { + struct tag { std::string name; std::string description; @@ -53,11 +55,11 @@ struct Paths { std::vector paths; }; -class UmosapiService { +class Api { public: - UmosapiService(); - virtual ~UmosapiService() {}; + Api(); + virtual ~Api() {}; void init(); @@ -105,4 +107,5 @@ class UmosapiService { void swagger(std::string ui_path, std::string swagger_dir, std::string api_path); }; +} #endif -- cgit v1.2.1