pixwhile/routes/routes.h

17 lines
939 B
C
Raw Normal View History

2023-04-03 08:57:51 +00:00
#pragma once
#include <httplib/httplib.h>
2023-04-05 16:36:20 +00:00
struct Config; // forward declaration from ../config.h
class PixivClient; // forward declaration from ../pixivclient.h
2023-06-08 16:02:36 +00:00
class Redis; // forward declaration from ../hiredis_wrapper.h
2023-04-03 09:32:26 +00:00
2023-05-12 09:56:22 +00:00
extern const uint64_t css_hash;
2023-04-03 09:32:26 +00:00
void home_route(const httplib::Request& req, httplib::Response& res, const Config& config);
2023-04-03 15:10:08 +00:00
void css_route(const httplib::Request& req, httplib::Response& res);
2023-04-07 15:06:31 +00:00
void user_illustrations_route(const httplib::Request& req, httplib::Response& res, const Config& config, PixivClient& pixiv_client);
2023-04-09 13:31:50 +00:00
void artworks_route(const httplib::Request& req, httplib::Response& res, const Config& config, PixivClient& pixiv_client);
2023-05-01 16:40:33 +00:00
void tags_route(const httplib::Request& req, httplib::Response& res, const Config& config, PixivClient& pixiv_client);
2023-06-08 16:02:36 +00:00
void guess_extension_route(const httplib::Request& req, httplib::Response& res, const Config& config, PixivClient& pixiv_client, Redis* redis);