2018-04-23 15:26:39 +02:00
|
|
|
/*
|
2020-02-04 11:25:54 +01:00
|
|
|
* (C) Copyright 2017-2020 OpenVidu (https://openvidu.io)
|
2018-04-23 15:26:39 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-01-10 14:25:31 +01:00
|
|
|
package io.openvidu.server.rest;
|
2017-06-05 11:13:25 +02:00
|
|
|
|
2021-06-02 22:33:02 +02:00
|
|
|
import org.springframework.stereotype.Controller;
|
2020-04-16 13:34:22 +02:00
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
2017-06-05 11:13:25 +02:00
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
2021-06-02 22:33:02 +02:00
|
|
|
@Controller
|
2020-04-16 13:34:22 +02:00
|
|
|
@CrossOrigin
|
2020-10-01 13:35:05 +02:00
|
|
|
@RequestMapping(RequestMappings.ACCEPT_CERTIFICATE)
|
2018-01-10 14:25:31 +01:00
|
|
|
public class CertificateRestController {
|
2020-04-16 13:34:22 +02:00
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
2018-01-10 14:25:31 +01:00
|
|
|
public String acceptCert() throws Exception {
|
2017-06-05 11:13:25 +02:00
|
|
|
System.out.println("Navigating to accept certificate");
|
|
|
|
return "accept-cert";
|
|
|
|
}
|
2020-04-16 13:34:22 +02:00
|
|
|
|
2018-01-10 14:25:31 +01:00
|
|
|
}
|