fix: update scrape route to support both GET and POST methods
This commit is contained in:
@@ -277,7 +277,7 @@ def set_favorite(job_id):
|
|||||||
csrf.exempt(set_favorite)
|
csrf.exempt(set_favorite)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/scrape', methods=['POST'])
|
@app.route('/scrape', methods=['GET', 'POST'])
|
||||||
def scrape():
|
def scrape():
|
||||||
"""Trigger the web scraping process with streaming output."""
|
"""Trigger the web scraping process with streaming output."""
|
||||||
def generate():
|
def generate():
|
||||||
|
|||||||
Reference in New Issue
Block a user