We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5daefb9 commit 6663614Copy full SHA for 6663614
src/Saturn/Controller.fs
@@ -277,6 +277,9 @@ module Controller =
277
if keyFormat.IsSome then
278
let stringConvert = stringConvert.Value
279
for (sPath, sCs) in state.SubControllers do
280
+ if not (sPath.StartsWith("/")) then
281
+ failwith (sprintf "Subcontroller route '%s' is not valid, these routes should start with a '/'." sPath)
282
+
283
let path = keyFormat.Value
284
let dummy = sCs (unbox<'Key> Unchecked.defaultof<'Key>)
285
siteMap.Forward (path + sPath) "" dummy
0 commit comments