Files
ozu.io/web/server.go
Jim Myhrberg 68807898da Lots of changes to web package
Use go-bindata, html/templates, and lots of other changes to the web
package.
2016-07-17 16:16:59 +01:00

13 lines
293 B
Go

package web
import (
"github.com/jimeh/ozu.io/shortener"
"github.com/valyala/fasthttp"
)
// NewServer returns a new fasthttp.Server with all routes configured.
func NewServer(s shortener.Shortener) *fasthttp.Server {
r := NewRouter(s)
return &fasthttp.Server{Handler: r.HandleRequest}
}