From 5c4fccf0e8a20d862d5d49c0590060c1b64dbe50 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Sat, 7 Nov 2015 22:22:57 -0700 Subject: [PATCH] Updated Writing Middleware (markdown) --- Writing-Middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Writing-Middleware.md b/Writing-Middleware.md index 46f1730..6c00ebc 100644 --- a/Writing-Middleware.md +++ b/Writing-Middleware.md @@ -85,4 +85,4 @@ rewrite /bar /baz creates just 1 struct but that struct holds 2 rules, for example, in a field like this: `Rules []Rule`. -Once that's all set up, you'll need to register your middleware so Caddy knows about it. You can look in the [config/directives.go](https://github.com/mholt/caddy/blob/master/config/directives.go) file to see the list of standard directives and think about where in the chain your middleware goes. The ordering is very important, so be sure to get it right! Follow the remaining steps in [Extending Caddy](https://github.com/mholt/caddy/wiki/Extending-Caddy) to learn how to test your middleware and make it available to others. \ No newline at end of file +Once that's all set up, you'll need to register your middleware so Caddy knows about it. You can look in the [caddy/directives.go](https://github.com/mholt/caddy/blob/master/caddy/directives.go) file to see the list of standard directives and think about where in the chain your middleware goes. The ordering is very important, so be sure to get it right! Follow the remaining steps in [Extending Caddy](https://github.com/mholt/caddy/wiki/Extending-Caddy) to learn how to test your middleware and make it available to others. \ No newline at end of file