pixwhile/routes/routes.h

15 lines
733 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-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);