mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 10:26:22 +02:00
14 lines
220 B
Go
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),
|
|
}
|
|
}
|