// // Created by selim on 03.01.2022. // #ifndef AUTOCAT_GNOME_API_H #define AUTOCAT_GNOME_API_H #include #include #include #include #include #include "../models/User.h" #include "../coro/Coro.h" namespace fc = folly::coro; class Api { private: static const std::string _baseUrl; static SoupSession* _session; private: template static folly::Future post(const std::string& method, const nlohmann::json& params); public: static fc::Task login(std::string email, std::string password); }; #endif //AUTOCAT_GNOME_API_H