Skip to content

Commit d0a1dfd

Browse files
committed
Added short description about route exemptions.
1 parent 5c40d46 commit d0a1dfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Code is based on the `nosurf` package implemented by
1111

1212
go get github.com/cbonello/revel-csrf
1313

14+
A demo application is provided in the samples directory. To launch it:
15+
16+
revel run github.com/cbonello/revel-csrf/samples/demo
17+
1418
## Configuration options
1519

1620
Revel-csrf supports following configuration options in `app.conf`:
@@ -90,9 +94,7 @@ Javascript-code sample to perform AJAX calls with jQuery 1.5 and newer.
9094
});
9195
});
9296

93-
A demo application is provided in the samples directory. To launch it:
94-
95-
revel run github.com/cbonello/revel-csrf/samples/demo
97+
You can call `csrf.ExemptedFullPath()` or `csrf.ExemptedGlob()` to exempt routes from CSRF checks. See `app/init.go` in demo application.
9698

9799
## TODO
98100

0 commit comments

Comments
 (0)