stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Add ability to map a single file #16

Closed matryer closed 11 years ago

matryer commented 11 years ago

It would be great to map a single file, instead of having to map an entire directory.

Use case:

Should be doable like this:

goweb.MapStaticFile("favicon.ico", "/static/files/images/icons/favicon.ico")