Changeset 23 in code for trunk/partage.go
- Timestamp:
- Oct 19, 2021, 6:35:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/partage.go
r22 r23 176 176 177 177 178 //link := conf.baseuri + conf.filectx + filepath.Base(tmp.Name()) 179 link := conf.baseuri + conf.metactx + filepath.Base(tmp.Name()) + ".json" 178 link := conf.baseuri + conf.filectx + filepath.Base(tmp.Name()) 180 179 links = append(links, link) 181 180 } … … 231 230 http.HandleFunc("/", uploader) 232 231 http.Handle(conf.filectx, http.StripPrefix(conf.filectx, http.FileServer(http.Dir(conf.filepath)))) 233 http.Handle(conf.metactx, http.StripPrefix(conf.metactx, http.FileServer(http.Dir(conf.metapath))))234 232 http.ListenAndServe("0.0.0.0:8080", nil) 235 233 }
Note:
See TracChangeset
for help on using the changeset viewer.