// Copyright 2022 Terin Stock. // SPDX-License-Identifier: MPL-2.0 package server import "net/http" func FileHandler(path string) http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { http.ServeFile(rw, req, path) }) }