i have a problem with my python code:
@cross_origin
@app.route('/path', methods=['POST'])
def post_infos():
print('ok, apscheduler work !' )
sched = BackgroundScheduler(daemon=True)
sched.add_job(pos_infos, 'interval',
seconds=10)
sched.start()
post_infos()
#when i run my code i have this error message: " TypeError: cross_origin.<locals>.decorator() missing 1 required positional argument: 'f' "
the problem comes from @cross_origin, when I run this code without the @cross_origin but with a "GET" method I have no error.
so what this TypeError means please ?
What do I need to do to make the code work? thanks !