Remove unused files

This commit is contained in:
antao 2018-10-28 15:38:22 +08:00
parent 7e36c92281
commit 892cd420da
2 changed files with 0 additions and 47 deletions

View File

@ -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);
}

View File

@ -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;
};