i2pdtunnelwizard/http/languagehandlermiddleware.h

21 lines
486 B
C

// acetone, 2025
// I hate copyright of any kind. This is a public domain.
// Original source: http://git.community.i2p/acetone/i2pdtunnelwizard
#pragma once
#include "../notepad.h"
#include "crow.h"
struct LanguageHandler
{
struct context
{
Notepad::Lang lang = Notepad::Lang::en;
};
void before_handle(crow::request& req, crow::response& /*res*/, context& ctx);
void after_handle(crow::request& /*req*/, crow::response& /*res*/, context& /*ctx*/);
};