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,17 +17,20 @@
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.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Controller
@RestController
@CrossOrigin
@RequestMapping("/accept-certificate")
public class CertificateRestController {
@RequestMapping(value = "/accept-certificate", method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.GET)
public String acceptCert() throws Exception {
System.out.println("Navigating to accept certificate");
return "accept-cert";
}
}