view 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
line wrap: on
line source

// This is Free Software under GNU Affero General Public License v >= 3.0
// without warranty, see README.md and license for details.
//
// SPDX-License-Identifier: AGPL-3.0-or-later
// License-Filename: LICENSES/AGPL-3.0.txt
//
// Copyright (C) 2018, 2019, 2020 by via donau
//   – Österreichische Wasserstraßen-Gesellschaft mbH
// Software engineering by Intevation GmbH
//
// Author(s):
//  * Sascha L. Teichmann <sascha.teichmann@intevation.de>

package controllers

import (
	"net/http"

	"github.com/gorilla/mux"
)

func fairwayAvailability(res http.ResponseWriter, req *http.Request) {

	vars := mux.Vars(req)

	switch vars["kind"] {
	case "bottleneck":
	case "stretch":
	case "section":
	}

	// TODO: Implement me!
}