Fix: Router Functions are the same weight as classes

also added some basic tests for it.
This commit is contained in:
Maurice Grönwoldt 2024-05-13 18:23:27 +02:00
commit f001b24749
7 changed files with 138 additions and 13 deletions

View file

@ -21,6 +21,7 @@ public:
void Stop();
void SetRouter(Ref<Router> &router);
void AddSendResponse(SendData);
void CloseRequest(int id) const;
Ref<MiddleWareHandler> &Middleware() { return m_MiddleWare; }
bool HasBodyParser(const std::string &key) {
return m_ParseFunctions.contains(key);