Refactor data/ route to have seperate GET and POST methods
Slight refactor
Change component scan declaration