package xyz.nulldev.ts;

import spark.Spark;

/**
 * Project: TachiServer
 * Author: nulldev
 * Creation Date: 22/07/16
 */
public class TachiWebUIServer {
    public void start() {
        Spark.staticFiles.header("Access-Control-Allow-Origin", "*");
        Spark.staticFiles.location("/tachiweb-ui");
        Spark.redirect.get("/", "/index.html");
        Spark.redirect.get("", "/index.html");
    }
}

@@ -18,16 +18,39 @@
 ev.ts;%0A%0A
+import spark.Redirect;%0A
 import s
@@ -347,19 +347,19 @@
 ect.
-get
+any
 (%22/%22, %22/
 inde
@@ -350,35 +350,73 @@
 .any(%22/%22, %22/
-index.html%22
+library.html%22, Redirect.Status.TEMPORARY_REDIRECT
 );%0A        S
@@ -433,29 +433,67 @@
 ect.
-get
+any
 (%22%22, %22/
-index.html%22
+library.html%22, Redirect.Status.TEMPORARY_REDIRECT
 );%0A 

Optimize root url handling.