Remove unused files
This commit is contained in:
parent
7e36c92281
commit
892cd420da
|
@ -1,27 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* create_filter.cc
|
||||
*
|
||||
* drogon_ctl
|
||||
*
|
||||
*/
|
||||
|
||||
#include "create_filter.h"
|
||||
|
||||
using namespace drogon;
|
||||
void create_filter::doFilter(const HttpRequestPtr &req,
|
||||
const FilterCallback &fcb,
|
||||
const FilterChainCallback &fccb)
|
||||
{
|
||||
//Edit your logic here
|
||||
if (1)
|
||||
{
|
||||
//Passed
|
||||
fccb();
|
||||
return;
|
||||
}
|
||||
//Check failed
|
||||
auto res = drogon::HttpResponse::newHttpResponse();
|
||||
res->setStatusCode(HttpResponse::k500InternalServerError);
|
||||
fcb(res);
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* create_filter.h
|
||||
* drogon_ctl
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <drogon/HttpFilter.h>
|
||||
using namespace drogon;
|
||||
|
||||
class create_filter : public HttpFilter<create_filter>
|
||||
{
|
||||
public:
|
||||
create_filter() {}
|
||||
virtual void doFilter(const HttpRequestPtr &req,
|
||||
const FilterCallback &fcb,
|
||||
const FilterChainCallback &fccb) override;
|
||||
};
|
Loading…
Reference in New Issue