Melora Hugues
ca59f1e25f
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
280 B
Go
15 lines
280 B
Go
package ui
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
const StaticRoute = "/static/"
|
|
|
|
type StaticController struct {
|
|
}
|
|
|
|
func (sc *StaticController) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
fs := http.FileServer(http.Dir("./static"))
|
|
http.StripPrefix(StaticRoute, fs).ServeHTTP(w, r)
|
|
}
|