Closed vincentDcmps closed 3 years ago
Actually it would be better if we had a new decorator that registered both routes rather than specifying each time the two versions. That would prevent typos or missing route registration. Ideally something like
@the_awesome_new_decorator("someEndpoint")
def da_function():
...
would be equivalent to
@api.route("someEndpoint", methods=["GET", "POST"])
@api.route("someEndpoint.view", methods=["GET", "POST"])
def da_function():
...
Do you think you can handle it?
yes I will, I have think to that two day ago but not apply yesterday ^^
@spl0k please review
done
Codecov Report
94.95% <100.00%> (ø)
100.00% <100.00%> (ø)
92.00% <100.00%> (ø)
100.00% <100.00%> (ø)
17.85% <100.00%> (ø)
94.51% <100.00%> (ø)
97.26% <100.00%> (ø)
100.00% <100.00%> (ø)
52.00% <100.00%> (ø)
100.00% <100.00%> (ø)
Continue to review full report at Codecov.