Modify API controller; allow custom dates

Signed-off-by: JWhy <jwhy@jwhy.de>