added favicon
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user