blob: 4db3879724e9a907575be6fc79d4ada0aba9a370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package main
import (
"fmt"
"net/http"
)
func init() {
router.Handle("/", http.FileServer(http.Dir("frontend/public")))
router.HandleFunc("/api/version", version)
}
func version(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, versionTxt)
}
|