mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: CertificateRestController refactoring
parent
92d0c1bdba
commit
40eda8e1ac
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue