静的ファイルの修正
このコミットが含まれているのは:
コミット
d2fd9cf6b1
|
@ -1,3 +1,6 @@
|
|||
# 1.1.1
|
||||
* 静的ファイルの修正
|
||||
|
||||
# 1.1.0
|
||||
* 言語はliblocale化
|
||||
* 複数言語対応
|
||||
|
|
2
srv.go
2
srv.go
|
@ -208,7 +208,7 @@ func archiveHandler (cnf Config) func (http.ResponseWriter, *http.Request) {
|
|||
|
||||
// サーバー
|
||||
func serv (cnf Config, port int) {
|
||||
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
|
||||
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(cnf.webpath + "/static"))))
|
||||
|
||||
http.HandleFunc("/api/", apiHandler(cnf))
|
||||
http.HandleFunc("/archive/", archiveHandler(cnf))
|
||||
|
|
読み込み中…
新しいイシューから参照