Skip to content

Commit aa2fc81

Browse files
authored
Merge pull request #5 from toburger/feature/pathStarts
Add pathStarts filter
2 parents e79ba4a + 1a156f1 commit aa2fc81

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Suave.IIS/Filters.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
module Suave.IIS.Filters
22

3+
/// IIS wrapper for Suave.Filters.pathStarts function
4+
let pathStarts (args:string []) p =
5+
match args |> Configuration.parseSetup with
6+
| Some({Path = Some setupPath}) -> Suave.Filters.pathStarts <| sprintf "/%s%s" setupPath p
7+
| _ -> Suave.Filters.pathStarts p
8+
39
/// IIS wrapper for Suave.Filters.path function
410
let path (args:string []) p =
511
match args |> Configuration.parseSetup with

0 commit comments

Comments
 (0)