mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 10:47:48 +00:00 
			
		
		
		
	Refactoring project layout
This commit is contained in:
		
							
								
								
									
										43
									
								
								src/RESTAPI/RESTAPI_action_links.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								src/RESTAPI/RESTAPI_action_links.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| // | ||||
| // Created by stephane bourque on 2021-06-22. | ||||
| // | ||||
|  | ||||
| #ifndef UCENTRALSEC_RESTAPI_ACTION_LINKS_H | ||||
| #define UCENTRALSEC_RESTAPI_ACTION_LINKS_H | ||||
|  | ||||
|  | ||||
| #include "../framework/RESTAPI_handler.h" | ||||
| #include "Poco/Net/PartHandler.h" | ||||
| #include "Poco/Message.h" | ||||
| #include "Poco/Net/MessageHeader.h" | ||||
| #include "Poco/Net/NameValueCollection.h" | ||||
| #include "Poco/NullStream.h" | ||||
| #include "Poco/StreamCopier.h" | ||||
| #include "Poco/CountingStream.h" | ||||
|  | ||||
| namespace OpenWifi { | ||||
|     class RESTAPI_action_links : public RESTAPIHandler { | ||||
|     public: | ||||
|         RESTAPI_action_links(const RESTAPIHandler::BindingMap &bindings, Poco::Logger &L, RESTAPI_GenericServer &Server, bool Internal) | ||||
|                 : RESTAPIHandler(bindings, L, | ||||
|              std::vector<std::string>{ | ||||
|                                         Poco::Net::HTTPRequest::HTTP_GET, | ||||
|                                         Poco::Net::HTTPRequest::HTTP_POST, | ||||
|                                         Poco::Net::HTTPRequest::HTTP_OPTIONS}, | ||||
|                                         Server, | ||||
|                                         Internal, | ||||
|                                         false) {} | ||||
|         static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/actionLink"}; }; | ||||
|         void RequestResetPassword(std::string &Id); | ||||
|         void CompleteResetPassword(std::string &Id); | ||||
|         void DoEmailVerification(std::string &Id); | ||||
|         void DoReturnA404(); | ||||
|  | ||||
|         void DoGet() final; | ||||
|         void DoPost() final; | ||||
|         void DoDelete() final {}; | ||||
|         void DoPut() final {}; | ||||
|     }; | ||||
| } | ||||
|  | ||||
| #endif //UCENTRALSEC_RESTAPI_ACTION_LINKS_H | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959