/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package de.interseroh.tmb.server.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@CrossOrigin
public class LandingPageController {

    @Value("${applauncher.url:http://localhost:9014/applauncher}")
    private String applauncherUrl;

	@GetMapping(path = "*.html")
	public String doGet(HttpServletRequest request, Model model) {
        model.addAttribute("applauncherUrl", applauncherUrl);
        return "topmenubar";
	}

}

@@ -850,55 +850,8 @@
 r;%0A%0A
-import javax.servlet.http.HttpServletRequest;%0A%0A
 impo
@@ -905,16 +905,16 @@
 .Value;%0A
+
 import o
@@ -1110,16 +1110,77 @@
 Mapping;
+%0Aimport org.springframework.web.bind.annotation.PathVariable;
 %0A%0A@Contr
@@ -1360,17 +1360,26 @@
 path = %22
-*
+%7Bviewname%7D
 .html%22)%0A
@@ -1403,59 +1403,71 @@
 Get(
-HttpServletRequest request, Model model) %7B%0A        
+Model model,%0A%09%09%09@PathVariable(%22viewname%22) String viewname) %7B%0A%09%09
 mode
@@ -1520,35 +1520,25 @@
 l);%0A
-        return %22topmenubar%22
+%09%09return viewname
 ;%0A%09%7D

add support to serve multiple views like bstest_1_solution oder bstest_1_original