summary refs log tree commit diff stats
path: root/main.go
blob: 374b94fe1ff955252339e924fc71af5e7a69d448 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"log"
	"net/http"

	"github.com/gorilla/handlers"
)

func main() {
	log.Printf("getwtxt v0.1\n")

	serv := http.NewServeMux()

	serv.HandleFunc("/api/", apiHandler)

	log.Fatalln(http.ListenAndServe(":8080", handlers.CompressHandler(serv)))
}