静的ファイルの修正

このコミットが含まれているのは:
守矢諏訪子 2024-04-08 21:10:06 +09:00
コミット d2fd9cf6b1
2個のファイルの変更4行の追加1行の削除

ファイルの表示

@ -1,3 +1,6 @@
# 1.1.1
* 静的ファイルの修正
# 1.1.0
* 言語はliblocale化
* 複数言語対応

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))