Trying to generate a badge
parent
4269baf143
commit
fefc65fb23
6
main.go
6
main.go
|
@ -46,6 +46,12 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// Handle per i badge.
|
||||||
|
http.HandleFunc("/badge", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
|
badgeHandler(w, r)
|
||||||
|
|
||||||
|
})
|
||||||
// Handler principale
|
// Handler principale
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
// Verifica se la richiesta è per un file audio o cover
|
// Verifica se la richiesta è per un file audio o cover
|
||||||
|
|
Loading…
Reference in New Issue