package com.zjty.autotest.controller;

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

/**
 * @author C
 * 静态资源映射
 */
@SuppressWarnings("SpringMVCViewInspection")
@Controller
public class ResourceController {

    @RequestMapping("index")
    public String index(){
        return "index.html";
    }

    @RequestMapping("/screenshot/{name}")
    public String picture(@PathVariable String name){
        return name + ".png";
    }
}
