17#include "drogon/utils/FunctionTraits.h"
18#include <json/value.h>
20namespace drogon::plugin
34 "remove_trailing_slashes": true,
35 // If true, it removes all duplicate slashes, e.g.
37 "remove_duplicate_slashes": true,
38 // If true, redirects the request, otherwise forwards
45 * Enable the plugin by adding the configuration to the list of plugins in the
59 bool trailingSlashes_{
true}, duplicateSlashes_{
true}, redirect_{
true};
The reflection base class for plugins.
Definition Plugin.h:132
void initAndStart(const Json::Value &config) override