package com.itstherules.mediacentre.controller;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.itstherules.mediacentre.Extension;
import com.itstherules.stream.model.ItemsModel;
public class MusicController extends BaseController {
private static final String MUSIC = "music";
@Override
public void list(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
parameters.put("items", new ItemsModel(MUSIC, (String) parameters.get("directory"), Extension.mp3.toString()).asList());
merge("music/list.freemarker", parameters, response.getWriter());
}
}