소스 검색

several small fixes

tags/v1.0.0
Remco 9 년 전
부모
커밋
b3f3ff70f3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      transfersh-server/main.go

+ 2
- 1
transfersh-server/main.go 파일 보기

@@ -69,6 +69,7 @@ func main() {
r.PathPrefix("/images/").Handler(http.FileServer(http.Dir("./static/")))
r.PathPrefix("/fonts/").Handler(http.FileServer(http.Dir("./static/")))
r.PathPrefix("/ico/").Handler(http.FileServer(http.Dir("./static/")))
r.PathPrefix("/favicon.ico").Handler(http.FileServer(http.Dir("./static/")))
r.PathPrefix("/robots.txt").Handler(http.FileServer(http.Dir("./static/")))

r.HandleFunc("/({files:.*}).zip", zipHandler).Methods("GET")
@@ -103,7 +104,7 @@ func main() {
r.HandleFunc("/{filename}", putHandler).Methods("PUT")
r.HandleFunc("/health.html", healthHandler).Methods("GET")
r.HandleFunc("/", postHandler).Methods("POST")
r.HandleFunc("/{page}", viewHandler).Methods("GET")
// r.HandleFunc("/{page}", viewHandler).Methods("GET")
r.HandleFunc("/", viewHandler).Methods("GET")

r.NotFoundHandler = http.HandlerFunc(notFoundHandler)


불러오는 중...
취소
저장