download: initial implementation
This commit is contained in:
parent
e117402a85
commit
3d3077b3bd
@ -91,7 +91,7 @@ func (this *ArchiveServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
this.legacyRoute(w, r)
|
this.legacyRoute(w, r)
|
||||||
|
|
||||||
} else if r.URL.Path == `/download` {
|
} else if r.URL.Path == `/download` {
|
||||||
arc.renderError(w, "Not implemented.") // FIXME
|
this.serveDownload(w)
|
||||||
|
|
||||||
} else if matches := this.rxViewRoot.FindStringSubmatch(r.URL.Path); len(matches) > 0 {
|
} else if matches := this.rxViewRoot.FindStringSubmatch(r.URL.Path); len(matches) > 0 {
|
||||||
if ls := this.lookupSource(matches[1]); ls != nil {
|
if ls := this.lookupSource(matches[1]); ls != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user