openvidu-server: CertificateRestController refactoring

pull/437/head
pabloFuente 2020-04-16 13:34:22 +02:00
parent 92d0c1bdba
commit 40eda8e1ac
1 changed files with 8 additions and 5 deletions

View File

@ -17,14 +17,17 @@
package io.openvidu.server.rest; package io.openvidu.server.rest;
import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Controller @RestController
@CrossOrigin
@RequestMapping("/accept-certificate")
public class CertificateRestController { public class CertificateRestController {
@RequestMapping(value = "/accept-certificate", method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)
public String acceptCert() throws Exception { public String acceptCert() throws Exception {
System.out.println("Navigating to accept certificate"); System.out.println("Navigating to accept certificate");
return "accept-cert"; return "accept-cert";