router differentiates between GET/POST requests