added favicon

This commit is contained in:
2026-02-17 17:48:37 +01:00
parent 58d37b51b7
commit d758bbd62c
17 changed files with 56 additions and 55 deletions

View File

@@ -25,7 +25,7 @@ static std::unordered_map<std::string, std::string> parse_query_string(const std
return params;
}
void initApi(crow::App<CORS>& app){
void initApi(crow::App<crow::CORSHandler>& app){
CROW_ROUTE(app, "/assets/shadowrun/<path>")
([&](const crow::request& req, const std::string& p) {

View File

@@ -1,12 +1,12 @@
#ifndef __SHADOWRUNAPI_H__
#define __SHADOWRUNAPI_H__
#include "cors.h"
#include <crow.h>
#include "crow.h"
#include "crow/middlewares/cors.h"
namespace shadowrun {
void initApi(crow::App<CORS>& app);
void initApi(crow::App<crow::CORSHandler>& app);
}
#endif // __SHADOWRUNAPI_H__