summaryrefslogtreecommitdiff
path: root/handlers.go
blob: 08486bf153d29d8e73124d78d56b7772cdd6d2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import (
	"fmt"
	"net/http"
)

func init() {
	router.HandleFunc("/api/version", version)
}

func version(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, versionTxt)
}