Skip to content

Commit

Permalink
fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Sep 1, 2020
1 parent 8100e05 commit b262fcc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ require (
github.com/nektro/go-util v0.0.0-20200831224928-5ee14cded1af
github.com/nektro/go.dbstorage v0.0.0-20200802192712-7245913dba7b
github.com/nektro/go.discord v0.0.0-20190906060420-58630ff220dd
github.com/nektro/go.etc v0.0.0-20200825215452-23036b4f075b
github.com/nektro/go.oauth2 v0.0.0-20200802231242-8d0850da0ee7
github.com/nektro/go.etc v0.0.0-20200901033255-aefb1b33a137
github.com/nektro/go.oauth2 v0.0.0-20200901032914-5d8c9a2371d2
github.com/rakyll/statik v0.1.7
github.com/spf13/pflag v1.0.5
github.com/valyala/fastjson v1.5.4
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ github.com/nektro/go.dbstorage v0.0.0-20200802192712-7245913dba7b h1:CNd6d0hx61G
github.com/nektro/go.dbstorage v0.0.0-20200802192712-7245913dba7b/go.mod h1:8PkaJBrkNn1TsHpOjDLDxOsKXv7QviBBjncs0WgPyO0=
github.com/nektro/go.discord v0.0.0-20190906060420-58630ff220dd h1:e8RgnXPoDTc+Q340LAuZ+OdOe7XPYOXTF5k5CI5daqM=
github.com/nektro/go.discord v0.0.0-20190906060420-58630ff220dd/go.mod h1:5l5KIfJE6AHZkxaYglzzqaR/P4tSIv+UzzR1mrXWQX8=
github.com/nektro/go.etc v0.0.0-20200825215452-23036b4f075b h1:ftcLxZl8J/+Y0LY7f1vcDYIjR8nP4/oMoUDbX0izxro=
github.com/nektro/go.etc v0.0.0-20200825215452-23036b4f075b/go.mod h1:lZDMgzeJ6eYj8GNcQXfVs2s1KERw00pE2IMVs9XlO+w=
github.com/nektro/go.oauth2 v0.0.0-20200802231242-8d0850da0ee7 h1:B8bW7QVLodMnq6ehayVS2ZzDgyX9dolu/mog/IgxQQQ=
github.com/nektro/go.oauth2 v0.0.0-20200802231242-8d0850da0ee7/go.mod h1:ywuQRMEuUHKL59OHssh4c0taBA2APYnun7humThPn9o=
github.com/nektro/go.etc v0.0.0-20200901033255-aefb1b33a137 h1:5pH4/HNwETMruQZs6mMJ6W4WkxrCadJPM/CcxX95AKw=
github.com/nektro/go.etc v0.0.0-20200901033255-aefb1b33a137/go.mod h1:lZDMgzeJ6eYj8GNcQXfVs2s1KERw00pE2IMVs9XlO+w=
github.com/nektro/go.oauth2 v0.0.0-20200901032914-5d8c9a2371d2 h1:mbW8r7Czf1fSZTsk3efyblW5l7u4ml4qgPLxLaDKbJE=
github.com/nektro/go.oauth2 v0.0.0-20200901032914-5d8c9a2371d2/go.mod h1:ywuQRMEuUHKL59OHssh4c0taBA2APYnun7humThPn9o=
github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=
github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func main() {

vflag.IntVar(&idata.Config.Version, "version", idata.RequiredConfigVersion, "Config version to use.")
vflag.StringVar(&idata.Config.Root, "root", "", "Path of root directory for files")
vflag.StringVar(&idata.Config.HTTPBase, "base", "/", "Http Origin Path")
vflag.StringVar(&idata.Config.Public, "public", "", "Public root of files to serve")
vflag.StringArrayVar(&idata.Config.SearchOn, "enable-search", []string{}, "Set to a root ID to enable file search for that directory.")
vflag.StringArrayVar(&idata.Config.SearchOff, "disable-search", []string{}, "Set to a root ID to disable file search for that directory.")
Expand Down Expand Up @@ -137,6 +136,7 @@ func main() {
// http server setup

handler.Init()
idata.Config.HTTPBase = htp.Base()

htp.Register("/test", "GET", handler.HandleTest)

Expand Down

0 comments on commit b262fcc

Please sign in to comment.