mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Use go-bindata, html/templates, and lots of other changes to the web package.
13 lines
293 B
Go
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}
|
|
}
|