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