Skip to content

Commit 11ca211

Browse files
Update README.md
1 parent d3513cc commit 11ca211

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ begin
3838
3939
// The default header for receiving credentials is "Authorization".
4040
// You can change, if necessary:
41-
// THorse.Use(HorseBasicAuthentication(MyCallbackValidation, 'X-My-Header-Authorization'));
41+
// THorse.Use(HorseBasicAuthentication(MyCallbackValidation, THorseBasicAuthenticationConfig.New.Header('X-My-Header-Authorization')));
42+
43+
// You can also ignore routes:
44+
// THorse.Use(HorseBasicAuthentication(MyCallbackValidation, THorseBasicAuthenticationConfig.New.SkipRoutes(['/ping'])));
4245
4346
THorse.Get('/ping',
4447
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)

0 commit comments

Comments
 (0)