I'm building an application that uses as front-end a qooxdoo application which does all the rendering stuff in the browser with javascript. This client-side application only makes calls to the server like this: "get me all the workers" and the server-side returns a list with all the workers in json format..
Now it works like this:
- Client makes a request to the server
- Server calls the service "workers/get"
- The service make a call to the model:
Worker.findAll()
for example; - The server returns the list to the client.
Now since I've moved all the logic from the services to the Models, I'm asking myself what the services are doing? They are doing nothing and I'm thinking of getting rid of them so the new process would be:
- Client makes a request to the server
- Server calls the method on the model "Worker.findAll()"
- The server returns the list to the client.
That's all, what do you think, I might have problems later on? Thanks (: