package com.collective.celos.servlet;

import org.apache.commons.io.IOUtils;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;

/**
 * Returns list of IDs of configured workflows as JSON.
 *
 * GET /workflow-list
 * ==>
 * {
 *   "ids": [ "workflow-1", "workflow-2" ]
 * }
 */
@SuppressWarnings("serial")
public class UIServlet extends AbstractJSONServlet {

    protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException {
        res.setContentType("text/html");

        try {
            File src = new File(Thread.currentThread().getContextClassLoader().getResource("com/collective/celos/celos-ui.html").toURI());
            IOUtils.copy(new FileInputStream(src), res.getOutputStream());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}

@@ -241,137 +241,52 @@
 rns 
-list of IDs of configured workflows as JSON.%0A *%0A * GET /workflow-list%0A * ==%3E%0A * %7B%0A *   %22ids%22: %5B %22workflow-1%22, %22workflow-2%22 %5D%0A * %7D
+static HTML which runs User Interface JS App
 %0A */

fix the doc