fix(web): update server to handle database management interface
This commit is contained in:
parent
1f3d015870
commit
8eb11f6035
12
web/public/css/bootstrap.min.css
vendored
12
web/public/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -220,7 +220,7 @@ func main() {
|
||||
}
|
||||
public_fs := http.FileServer(http.Dir("/srv/www/tanabata"))
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/tfm" {
|
||||
if r.URL.Path == "/tfm" || r.URL.Path == "/tdbms" {
|
||||
r.URL.Path += "/"
|
||||
}
|
||||
if r.URL.Path[len(r.URL.Path)-1] != '/' && path.Ext(r.URL.Path) == "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user