1// Copyright 2022 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5package vcweb 6 7import ( 8 "log" 9 "net/http" 10) 11 12type bzrHandler struct{} 13 14func (*bzrHandler) Available() bool { return true } 15 16func (*bzrHandler) Handler(dir string, env []string, logger *log.Logger) (http.Handler, error) { 17 return http.FileServer(http.Dir(dir)), nil 18} 19