Commit 2c127902 authored by Daniel Puchala's avatar Daniel Puchala
Browse files

fix: review create path

parent f1734f75
......@@ -36,7 +36,7 @@ export const Movie = () => {
userId: getUser()!.sub,
};
console.log(reviewData)
await instance.post('reviews/create', reviewData, { headers });
await instance.post('reviews', reviewData, { headers });
alert('Review created');
};
......@@ -127,8 +127,8 @@ export const Movie = () => {
<label>
<textarea
className="w-full border-2 border-slate-900"
{...register('text', { required: true, minLength: 50 })}
placeholder={"At least 50 characters."}
{...register('text', { required: true, minLength: 1 })}
placeholder={"Write your review here."}
/>
</label>
<button type="submit" className="w-max p-2 self-center bg-blue-600 border-2 rounded-3xl border-slate-900">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment