Easy Pumpkin Curry

500g pumpkin cut into cubes

1 onion finely chopped

5 dry chillies or green chillies (reduce the amount of chilli if you don't want it too spicy)

1 sprig curry leaf