btclock_v3/src/lib/webserver/OneParamRewrite.hpp

14 lines
291 B
C++
Raw Normal View History

2023-11-07 20:26:15 +00:00
#pragma once
#include "ESPAsyncWebServer.h"
2023-11-30 21:38:01 +00:00
class OneParamRewrite : public AsyncWebRewrite {
2023-11-30 21:56:50 +00:00
protected:
2023-11-30 21:38:01 +00:00
String _urlPrefix;
int _paramIndex;
String _paramsBackup;
2023-11-07 20:26:15 +00:00
2023-11-30 21:56:50 +00:00
public:
2023-11-30 21:38:01 +00:00
OneParamRewrite(const char *from, const char *to);
bool match(AsyncWebServerRequest *request) override;
2023-11-07 20:26:15 +00:00
};