level12 / keg-app-cookiecutter

0 stars 0 forks source link

rule() shouldn't require post=True if I have a post method in the view class #171

Open rsyring opened 2 years ago

rsyring commented 2 years ago

Currently, I have to do:

class ApprovalReview(ApprovalBaseView):
    rule('<int:week_id>', post=True)

    def get(self, week_id):
        pass

    def post(self, week_id):
        pass

Seems like rule could be smarter and not require post=True if the post method is defined.