How everyone after we already got the data from the cloud.
Anyway, I want to somehow send this data into the, uh, some invoice to update or sorry to, uh,
okay to update the media URL.
For now, let me, uh, refactor the URL a little bit instead of only put the string over here.
We need to create a class for media.
I.
Put it in a reverse version, something like here, let me go back and put that.
Will arrive ahead.
Of the bar.
With my name.
Spring.
Bar.
Spring.
Russell and Rachel.
Di.
Spinoza.
Okay, guys.
And with here, I will replace with the media type.
Right.
Okay.
And in later I want to create.
One more endpoint.
Like a block media.
Okay.
To the boss.
And right here I will have a Boss.
The last to.
Apply or something like that.
I want to be hopeless and buy right here and inside the body I want.
It will look up.
The wristband.
Okay, now remember it.
Later, when we upload the media, we will go to API.
Okay?
We will control API one API for get the URL of the Cloudinary and the second API for the blog.
Back to the boss.
Okay, so for the result, after we already receive the data, I will send the message.
I will send something like that out over here.
Okay, I will save it till noon and then it will somehow update the boss.
That's what I want.
So let us visit the boss inside a little.
I will create a blog media dot dot js.
This is the here.
Let's import the class.
Right here will be the same width here.
And we need to add a little bit of check in over here.
This number right.
Okay.
Print.
The.
Market is not empty.
It will be very enough right now.
Okay.
I want to send some stuff like that.
And let me go to the boss and solve it.
I will create another service.
So what?
Maria.
And we will talk.
About Maria.
Later.
We will block Maria.
You are right.
Okay.
Over here!
Now let me console.log.
What is a clock media?
First, to make sure it works and inside the box controller right here I will create.
Batch method.
Okay, we can use post method if you want but I can replay I will use batch.
So we are here and of course we will talk now.
Array.
Select a block.
Okay.
We will block for specific box and make sure you boost this environment here above the here.
If if we boost below it will not work.
Make sure that.
Let me say.
Let me get on.
Boss.
Uh.
Right here.
Hmm.
Why hadn't I already remove some?
Boss?
Let me see.
Here.
Let me try to get.
A block media mode over here.
And.
Check my terminal.
Alright, we already got a ride with the little.
Over here.
Right?
And we will save that into the database.
So let's do that.
So here we need to boost the the ID right here.
So let me copy that over here.
And most likely.
These are the blog media that I.
Follow.
We need to find the right bus.
box.
Cutter with a robust review media URL.
Right.
Um.
We can look for us.
At the best UI.
We I will look.
After here.
I will post.
Something like that.
And maybe a wife boss boss site.
Is right here.
And I think we can remove the entire question right now and you can move.
The default will be empty, right?
It's much more better, right?
So here let's remove.
So let's face that we don't need to return anything.
Let me set success and let's check another way.
Okay.
Firstly I will check the database first.
Right here we already got some media tags.
Very very good right.
And in one one if I get the here okay it will show us all.
And boss.
Lets us.
Okay.
It's already Work.
Let me double check this one right here.
We already spoke.
With.
Bob.
Okay.
Thanks.
For your time.
This is the glass.
Plate.
Okay.
So that is.
That's how we can apply the data.
And actually, I completely, um.
I completely actually, we we don't need to send, uh, the URL from here.
Okay.
We only need to the URL to for the front end.
Okay.
The back end only need to fill.
Okay.
Let's send again.
Let me send again.
And you will see right here.
You will see we have a four element it later we will use to uh.
Remove.
Okay.
For now it's already you got the id?
The URL over here.
Okay.
Just ignore that.
Apply.
Okay.
Let me remove it a little bit.
Annoyed.
Okay.
Click on update over here.
And it will remove.
So guys that's it for the video.
And I will see you in the next one.