mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
15 lines
220 B
Go
15 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),
|
||
|
}
|
||
|
}
|