package com.steerinfo.abnormalHandler.controller;

import com.steerinfo.abnormalHandler.service.StatusSyncService;
import com.steerinfo.framework.controller.BaseRESTfulController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/${api.version}/statusSync")
public class StatusSyncController extends BaseRESTfulController {

    @Autowired
    StatusSyncService statusSyncService;

    @PostMapping("/syncStatus")
    public void syncStatus() {
        statusSyncService.doSync();
    }
}
