Modularizing api app