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.OsService;

@RestController
@RequestMapping("/api/targ_os")
public class OsController {

	@Autowired
	private OsService service;

	@GetMapping("list")
	public APIResponse getAll() {

		APIResponse response = service.ListTargOSMethod();
		return response;
	}

}
