package me.koba1.led.simulator;


import me.koba1.led.model.LedStrip;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@RestController
@RequestMapping("/api/simulator")
public class SimulatorController {


    @PostMapping("/update")
    public List<LedStrip> update(@RequestBody List<LedStrip> strips) throws IOException {
        System.out.println("Bejött strippek: " + strips);
        //return Main.getInstance().getLedStripManager().update(strips);
        return null;
    }
}
