Skip to content

Commit e9a8479

Browse files
committed
Add index.html file
1 parent 76488c9 commit e9a8479

File tree

3 files changed

+407
-0
lines changed

3 files changed

+407
-0
lines changed

bindata.go

+248
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func main() {
2828
r.HandleFunc("/api/fruits", fruitController.Create).Methods("POST")
2929
r.HandleFunc("/api/fruits/{id:[0-9]+}", fruitController.Update).Methods("PUT")
3030
r.HandleFunc("/api/fruits/{id:[0-9]+}", fruitController.Delete).Methods("DELETE")
31+
r.PathPrefix("/").Handler(http.FileServer(assetFS()))
3132

3233
http.Handle("/", r)
3334
r.Use(loggingMiddleware)

0 commit comments

Comments
 (0)