package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.APIResponse;
import com.example.demo.service.CrossTalkService;

@RestController
@RequestMapping("/api")
public class RedisCrossTalkController {

	@Autowired
	private CrossTalkService service;
	
	@GetMapping("/backup")
	public APIResponse CrossTalk() {
		APIResponse api = new APIResponse();
		api = service.crosstalk();
		return api;
	}

}
