neko/server/internal/http/api.go

15 lines
220 B
Go
Raw Normal View History

2020-01-13 21:05:38 +13:00
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),
}
}