Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
20 lines
309 B
C++
20 lines
309 B
C++
#pragma once
|
|
#include <iostream>
|
|
#include <httplib.h>
|
|
|
|
#define CORS_ENABLE
|
|
|
|
namespace OpenRouter
|
|
{
|
|
class OpenRouter
|
|
{
|
|
private:
|
|
httplib::Server srv;
|
|
|
|
public:
|
|
OpenRouter();
|
|
~OpenRouter();
|
|
int serve(const std::string& ip, int port, int socket_flags = 0);
|
|
};
|
|
}
|