aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-04-07 08:49:26 +0700
committerShulhan <m.shulhan@gmail.com>2020-04-07 09:10:18 +0700
commit2489e4efd9a3cb70a8031ae2a1829e8380462800 (patch)
treef8a1def0ba04010f26938fb613065061e566cf92 /server.go
parent213ba92bb2ce9dfca496bb346cb5b514976baeae (diff)
downloadkamusku-2489e4efd9a3cb70a8031ae2a1829e8380462800.tar.xz
_content: tambah deskripsi program dan berkas tautan unduh
Disebabkan server www-kbbi sekarang melayani tautan ke program, maka server tidak men-generate berkas static.go lagi, namun konten dari situs di salin langsung ke server.
Diffstat (limited to 'server.go')
-rw-r--r--server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.go b/server.go
index 7969ca2..f4401e8 100644
--- a/server.go
+++ b/server.go
@@ -17,6 +17,7 @@ import (
)
const (
+ defRootDir = "_www-kbbi"
defListen = ":3394"
emptyResponse = "{}"
)
@@ -45,7 +46,7 @@ type Server struct {
//
func NewServer(kamusStorage string) (server *Server, err error) {
opts := &http.ServerOptions{
- Root: "_content",
+ Root: defRootDir,
Address: defListen,
}