package api

import (
	"code.justin.tv/common/twitchhttp"
	"goji.io"
)

type Server struct {
	*goji.Mux
}

func NewServer() (*Server, error) {
	server := twitchhttp.NewServer()

	s := &Server{
		server,
	}

	// Add your own endpoints here. Endpoint implementation should be defined as functions on Server.
	// For example: s.HandleFuncC(pat.Get("/my/path"), s.myEndpoint)
	// https://godoc.org/goji.io

	return s, nil
}
