package com.its.api.webapp.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Slf4j
@Controller
@RequestMapping("/op")
public class ItsRedirectController {

    private final String baseContext = "forward:/application/op";

    @RequestMapping("/index.do")
    public ModelAndView index(HttpServletRequest request, HttpServletResponse response) {
        return new ModelAndView(this.baseContext + "/index.html");
    }

}
