Files
eephttpd/serve.go

18 lines
300 B
Go
Raw Normal View History

2019-09-02 00:23:03 -04:00
package eephttpd
2018-08-24 01:06:39 -04:00
import (
2019-09-02 00:23:03 -04:00
"strings"
"net/http"
2018-08-24 01:06:39 -04:00
)
2019-09-02 00:23:03 -04:00
func (f *EepHttpd) ServeHTTP(rw http.ResponseWriter, rq *http.Request) {
if strings.HasSuffix(rq.URL.Path, ".md") {
f.HandleMarkdown(rw, rq)
}
2018-08-24 01:06:39 -04:00
}
2019-09-02 00:23:03 -04:00
func (f *EepHttpd) HandleMarkdown(rw http.ResponseWriter, rq *http.Request) {
2018-08-24 01:06:39 -04:00
}