Skip to content

Instantly share code, notes, and snippets.

@Aaronontheweb
Created April 20, 2025 19:14
Show Gist options
  • Save Aaronontheweb/dd67dcc45d97fe081d43f9d872be9e74 to your computer and use it in GitHub Desktop.
Save Aaronontheweb/dd67dcc45d97fe081d43f9d872be9e74 to your computer and use it in GitHub Desktop.
Falco Static Files
module Program
open Falco
open Falco.Routing
open Microsoft.AspNetCore.Builder
let wapp = WebApplication.Create()
wapp.UseRouting()
.UseDefaultFiles()
.UseStaticFiles()
.UseFalco([
])
.Run(Response.ofPlainText "Not found")
module Program
open Falco
open Falco.Routing
open Microsoft.AspNetCore.Builder
let wapp = WebApplication.Create()
wapp.UseRouting()
.UseDefaultFiles()
.UseStaticFiles()
.Run(Response.ofPlainText "Not found")
@Aaronontheweb
Copy link
Author

thanks @pimbrouwers !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment