Skip to content

Commit

Permalink
add index controller
Browse files Browse the repository at this point in the history
add index controller
  • Loading branch information
leelance committed Jul 13, 2016
1 parent e4d18f7 commit 9b40ed1
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.lance.websocket.web;

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

@Controller
public class IndexController {

/**
* Index
* @return
*/
@RequestMapping(value={"", "/", "index"})
public String index() {
return "index.jsp";
}

@RequestMapping("chat")
public String chat() {
return "chat.jsp";
}

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

0 comments on commit 9b40ed1

Please sign in to comment.