package id.hackathonmerdeka.hackmdk3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Arthur Purnama (arthur@purnama.de)
 */
@Controller
public class IndexController {

    @RequestMapping(value = "/{path:^(?!api\\/v).*$")
    public String forward(){
        return "forward:/";
    }
}

@@ -93,16 +93,77 @@
 roller;%0A
+import org.springframework.web.bind.annotation.PathVariable;%0A
 import o
@@ -426,16 +426,39 @@
 !api
-%5C%5C/v)
+)(?!index)(?!%5C%5Cs*$)%5Ba-zA-Z%5D
 .*$
+%7D
 %22)%0A 
@@ -482,17 +482,59 @@
 forward(
-)
+@PathVariable(value = %22path%22) String path) 
 %7B%0A      

Prepare Grunt Build