diff options
| author | Shulhan <ms@kilabit.info> | 2020-03-30 20:52:11 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2020-03-30 20:52:11 +0700 |
| commit | c2289aef3928a853a40bb0606a0424cc4121d21d (patch) | |
| tree | 98027e5ff226e5507afee21a9b161f49c2d3d2b8 /server.go | |
| parent | 8bb8b602be6fa39f32880eb52517cceacb8d6409 (diff) | |
| download | ciigo-c2289aef3928a853a40bb0606a0424cc4121d21d.tar.xz | |
go.mod: update share module
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -64,13 +64,14 @@ func NewServer(root, address, htmlTemplate string) (srv *Server) { } epInSearch := &libhttp.Endpoint{ + Method: libhttp.RequestMethodGet, Path: "/_internal/search", RequestType: libhttp.RequestTypeQuery, ResponseType: libhttp.ResponseTypeHTML, Call: srv.onSearch, } - err = srv.http.RegisterGet(epInSearch) + err = srv.http.RegisterEndpoint(epInSearch) if err != nil { log.Fatal("ciigo: " + err.Error()) } |
