package se.kits.gakusei.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.GetMapping;
import se.kits.gakusei.content.model.Lesson;
import se.kits.gakusei.content.repository.LessonRepository;
import se.kits.gakusei.util.QuestionHandler;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import org.springframework.stereotype.Controller;

@Controller
public class RouteController {
    @GetMapping("/{path:(?!.*.js|.*.css|.*.jpg).*$}") // To not disrupt any resources
    @RequestMapping(value = {
            "/",
            "/login",
            "/logout",
            "/play/**",
            "/select/**",
            "/translate",
            "/finish/**",
            "/profile",
            "/about"},
            method = RequestMethod.GET)
    public String index() {
        return "index";
    }
}

@@ -1329,14 +1329,11 @@
   %22/
-profil
+hom
 e%22,%0A

whitelist /home