View definition

(*Router).ServeFiles

Defined in github.com/celrenheit/lion/router.go

Description

ServeFiles serves files located in root http.FileSystem

This can be used as shown below:

r := New()
r.ServeFiles("/static", http.Dir("static")) // This will serve files in the directory static with /static prefix

ServeFiles is referenced in 1 repository

github.com/celrenheit/lion