mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-11-04 04:37:45 +00:00 
			
		
		
		
	Adding avatars and preferences for subs.
This commit is contained in:
		
							
								
								
									
										27
									
								
								src/RESTAPI/RESTAPI_subpreferences.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								src/RESTAPI/RESTAPI_subpreferences.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
//
 | 
			
		||||
// Created by stephane bourque on 2021-11-16.
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "framework/MicroService.h"
 | 
			
		||||
 | 
			
		||||
namespace OpenWifi {
 | 
			
		||||
    class RESTAPI_subpreferences : public RESTAPIHandler {
 | 
			
		||||
    public:
 | 
			
		||||
        RESTAPI_subpreferences(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, RESTAPI_GenericServer &Server, uint64_t TransactionId, bool Internal)
 | 
			
		||||
        : RESTAPIHandler(bindings, L,
 | 
			
		||||
                         std::vector<std::string>{
 | 
			
		||||
            Poco::Net::HTTPRequest::HTTP_GET,
 | 
			
		||||
            Poco::Net::HTTPRequest::HTTP_PUT,
 | 
			
		||||
            Poco::Net::HTTPRequest::HTTP_OPTIONS},
 | 
			
		||||
            Server,
 | 
			
		||||
            TransactionId,
 | 
			
		||||
            Internal) {}
 | 
			
		||||
            static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/subpreferences"}; };
 | 
			
		||||
        void DoGet() final;
 | 
			
		||||
        void DoPut() final;
 | 
			
		||||
        void DoPost() final {};
 | 
			
		||||
        void DoDelete() final {};
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user