Skip to content

Instantly share code, notes, and snippets.

@kylone
kylone / RouteConfig.fs
Last active August 29, 2015 14:02
Module for declaring MVC route configurations in F#
/// MVC Route configurations
module RouteConfig =
open System.Web.Mvc
open System.Web.Routing
let registerRoutes (routes: RouteCollection) =
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
/// create a pair, boxing the second item