pixwhile/servehelper.h

11 lines
367 B
C
Raw Normal View History

2023-04-03 09:32:26 +00:00
#pragma once
#include <httplib/httplib.h>
#include "blankie/serializer.h"
struct Config; // forward declaration from config.h
using Element = blankie::html::Element;
void serve(const httplib::Request& req, httplib::Response& res, const Config& config, std::string title, Element element);
2023-04-03 14:40:34 +00:00
std::string get_origin(const httplib::Request& req, const Config& config);