This the backend server for pamarket and rest api server .
- /
- loads index page
- /farm?id=val
- loads page of a particular farm crops
- /farms
- loads page of all farms
- /login
- sign in page
- /api/farms
- This sends the json object of all farms in the server
- /api/farm?id=val
- This sends a request farm in the database ,using farm ID
- /api/crops?id=val
- gets all crops associated to a farm ,using the farm ID .