Automatic Scraping of dataset options #9
@@ -40,7 +40,7 @@ const UploadPage = () => {
|
|||||||
setHasError(false);
|
setHasError(false);
|
||||||
setReturnMessage("");
|
setReturnMessage("");
|
||||||
|
|
||||||
const response = await axios.post(`${API_BASE_URL}/upload`, formData, {
|
const response = await axios.post(`${API_BASE_URL}/datasets/upload`, formData, {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ def get_user_datasets():
|
|||||||
current_user = int(get_jwt_identity())
|
current_user = int(get_jwt_identity())
|
||||||
return jsonify(dataset_manager.get_user_datasets(current_user)), 200
|
return jsonify(dataset_manager.get_user_datasets(current_user)), 200
|
||||||
|
|
||||||
@app.route("/upload", methods=["POST"])
|
@app.route("/datasets/upload", methods=["POST"])
|
||||||
@jwt_required()
|
@jwt_required()
|
||||||
def upload_data():
|
def upload_data():
|
||||||
if "posts" not in request.files or "topics" not in request.files:
|
if "posts" not in request.files or "topics" not in request.files:
|
||||||
|
|||||||
Reference in New Issue
Block a user