11789: Merge branch 'master' into 11789-arvput-exclude-flag
[arvados.git] / services / arv-git-httpd / server.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package main
6
7 import (
8         "net/http"
9
10         "git.curoverse.com/arvados.git/sdk/go/httpserver"
11 )
12
13 type server struct {
14         httpserver.Server
15 }
16
17 func (srv *server) Start() error {
18         mux := http.NewServeMux()
19         mux.Handle("/", &authHandler{handler: newGitHandler()})
20         srv.Handler = mux
21         srv.Addr = theConfig.Listen
22         return srv.Server.Start()
23 }