summary refs log blame commit diff stats
path: root/main.go
blob: 374b94fe1ff955252339e924fc71af5e7a69d448 (plain) (tree)
1
2
3
4
5
6
7




                  

                                     




                                    


                                            
 
                                                                                 
 
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)))
}