comparison pkg/controllers/fwa.go @ 5184:445daeefca7b new-fwa

Added controller stub for new fairway availability.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 23 Mar 2020 15:29:55 +0100
parents
children d6710d29516b
comparison
equal deleted inserted replaced
5035:56c589f7435d 5184:445daeefca7b
1 // This is Free Software under GNU Affero General Public License v >= 3.0
2 // without warranty, see README.md and license for details.
3 //
4 // SPDX-License-Identifier: AGPL-3.0-or-later
5 // License-Filename: LICENSES/AGPL-3.0.txt
6 //
7 // Copyright (C) 2018, 2019, 2020 by via donau
8 // – Österreichische Wasserstraßen-Gesellschaft mbH
9 // Software engineering by Intevation GmbH
10 //
11 // Author(s):
12 // * Sascha L. Teichmann <sascha.teichmann@intevation.de>
13
14 package controllers
15
16 import (
17 "net/http"
18
19 "github.com/gorilla/mux"
20 )
21
22 func fairwayAvailability(res http.ResponseWriter, req *http.Request) {
23
24 vars := mux.Vars(req)
25
26 switch vars["kind"] {
27 case "bottleneck":
28 case "stretch":
29 case "section":
30 }
31
32 // TODO: Implement me!
33 }