Welcome to mirror list, hosted at ThFree Co, Russian Federation.

router.go « router - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 996fdaac9507fa4f7b7fc67976b0182d7b0ead14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package router

import (
	"net/http"
	"os"

	"github.com/gorilla/handlers"
	"github.com/gorilla/mux"

	"gitlab.com/gitlab-org/gitaly/handler"
)

func NewRouter() http.Handler {
	r := mux.NewRouter()

	r.HandleFunc("/", handler.Home)
	r.HandleFunc("/post-receive", handler.PostReceive)

	return handlers.LoggingHandler(os.Stdout, r)
}