mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
This commit is contained in:
parent
7a99f85060
commit
471aff5bc5
@ -4,4 +4,8 @@ package static
|
||||
var (
|
||||
Version = "dev"
|
||||
EnvironmentVariablePrefix = "PASTY_"
|
||||
|
||||
// TempFrontendPath defines the path where pasty loads the web frontend from; it will be removed any time soon
|
||||
// TODO: Remove this when issue #37 is fixed
|
||||
TempFrontendPath = "./web"
|
||||
)
|
||||
|
@ -106,7 +106,7 @@ func Serve() error {
|
||||
func frontendHandler() fasthttp.RequestHandler {
|
||||
// Create the file server
|
||||
fs := &fasthttp.FS{
|
||||
Root: "./web",
|
||||
Root: static.TempFrontendPath,
|
||||
IndexNames: []string{"index.html"},
|
||||
CacheDuration: 0,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user