neko/server/internal/http/api.go
2020-01-13 08:05:38 +00:00

14 lines
220 B
Go

package http
import (
"net/http"
"n.eko.moe/neko/internal/http/handler"
)
func New(bind, password, static string) *http.Server {
return &http.Server{
Addr: bind,
Handler: handler.New(password, static),
}
}