btclock_v3/src/lib/webserver/OneParamRewrite.hpp

15 lines
299 B
C++
Raw Normal View History

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