package com.aperture_software.glados_wiki.webmvc.controllers;
import com.aperture_software.glados_wiki.services.TimeZoneService;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.inject.Inject;
import java.util.List;
/**
* Created by jhyun on 14. 3. 12.
*/
@RequestMapping(value = "/timeZones")
@Controller
public class TimeZoneController {
@Inject
private TimeZoneService timeZoneService;
@ResponseBody
@RequestMapping(value = "listTimeZoneIds", produces = MediaType.APPLICATION_JSON_VALUE)
public List<String> listTimeZoneIds() {
return timeZoneService.sortedTimeZoneIds();
}
}