Skip to content

Commit

Permalink
Add pathStarts filter
Browse files Browse the repository at this point in the history
  • Loading branch information
toburger committed Jun 13, 2017
1 parent e79ba4a commit 1a156f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Suave.IIS/Filters.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module Suave.IIS.Filters

/// IIS wrapper for Suave.Filters.pathStarts function
let pathStarts (args:string []) p =
match args |> Configuration.parseSetup with
| Some({Path = Some setupPath}) -> Suave.Filters.pathStarts <| sprintf "/%s%s" setupPath p
| _ -> Suave.Filters.pathStarts p

/// IIS wrapper for Suave.Filters.path function
let path (args:string []) p =
match args |> Configuration.parseSetup with
Expand Down

0 comments on commit 1a156f1

Please sign in to comment.