package com.wsk.travelf.controller;

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

/**
 *      跳转页面控制器
 */

@Controller
public class PageController {

    /**
     *      访问后台页面
     */
    @RequestMapping("/backstage/{page}")
    public String backstage(@PathVariable String page) {
        return "/backstage/"+page;
    }

    /**
     *      访问前台页面
     */
    @RequestMapping("/frontdesk/{page}")
    public String frontdesk(@PathVariable String page) {
        return "/frontdesk/"+page;
    }

    /**
     *      忽略访问项目Logo
     */
    @RequestMapping("favicon.ico")
    @ResponseBody
    public void returnNoFavicon() {}

}
