router_static.go: go fmt
This commit is contained in:
parent
96589a2658
commit
8eb0bc147c
@ -2,12 +2,12 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"strings"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
|
||||||
"mime"
|
"mime"
|
||||||
"path"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func redirectLogin(w http.ResponseWriter, r *http.Request) {
|
func redirectLogin(w http.ResponseWriter, r *http.Request) {
|
||||||
@ -111,7 +111,7 @@ func staticRouterInit(router *mux.Router) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for p, _ := range(asset) {
|
for p, _ := range asset {
|
||||||
if path.Ext(p) != "" {
|
if path.Ext(p) != "" {
|
||||||
contentType[p] = mime.TypeByExtension(path.Ext(p))
|
contentType[p] = mime.TypeByExtension(path.Ext(p))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user