1
00:00:00,330 --> 00:00:00,870
Wonderful.

2
00:00:01,359 --> 00:00:08,220
And once we have the structure now, it's quickly test everything in the post, man, just so I can

3
00:00:08,220 --> 00:00:11,610
see that our general setup is in place.

4
00:00:12,420 --> 00:00:13,560
I want to go with you one.

5
00:00:14,670 --> 00:00:17,370
Folder, in this case, I'm going to call this.

6
00:00:18,470 --> 00:00:19,120
Order.

7
00:00:19,720 --> 00:00:30,020
How many take a sneak peek at the devil or chess or how the same stuff so create order is going out

8
00:00:30,020 --> 00:00:33,860
and go to the orders, then we want to add the request.

9
00:00:34,700 --> 00:00:38,210
This is going to be a request.

10
00:00:39,340 --> 00:00:41,740
Now the route will be Earl.

11
00:00:42,700 --> 00:00:42,930
And.

12
00:00:44,610 --> 00:00:45,480
Orders correct.

13
00:00:46,360 --> 00:00:47,940
So orders were send it.

14
00:00:48,300 --> 00:00:56,730
And once I send it back in error and not checks are in order out, yeah, of course I'm not exporting.

15
00:00:56,760 --> 00:00:59,790
So let's go with module exports.

16
00:00:59,910 --> 00:01:02,700
And that is equal to a router.

17
00:01:03,600 --> 00:01:04,800
Let's try one more time.

18
00:01:05,430 --> 00:01:06,810
Now we have create order.

19
00:01:07,470 --> 00:01:09,030
That's a beautiful start.

20
00:01:09,540 --> 00:01:11,640
So now let me just duplicate this thing.

21
00:01:11,640 --> 00:01:16,200
So let me save everything, by the way, and remove these stamps.

22
00:01:17,460 --> 00:01:19,260
So I have one too many in their.

23
00:01:20,730 --> 00:01:23,760
And then I'll duplicate this throughout.

24
00:01:25,500 --> 00:01:34,670
And then rename it, say, get all orders, and that's going to be a good route.

25
00:01:34,710 --> 00:01:35,130
Correct.

26
00:01:35,520 --> 00:01:40,830
So the earlier still the same, but it's going to be a good method send.

27
00:01:41,180 --> 00:01:45,180
And at this point, I have unauthorized to access this route, which is awesome.

28
00:01:45,210 --> 00:01:51,210
That means that our authentication works since I'm logged in US beta if I go with John.

29
00:01:52,330 --> 00:01:58,510
And if I go back and if I take a look at the fat orders, yup, I have it here.

30
00:01:58,930 --> 00:02:00,520
Now let me rename the first one.

31
00:02:00,730 --> 00:02:03,450
This is to create order.

32
00:02:03,730 --> 00:02:08,080
Then we want to set up, get single order and update or.

33
00:02:08,979 --> 00:02:10,840
So let's create those routes.

34
00:02:10,930 --> 00:02:12,670
Get single.

35
00:02:14,010 --> 00:02:16,320
Warner, as far as the Earl.

36
00:02:17,670 --> 00:02:25,560
We'll go to the same place and hear a order and then some kind of I.D..

37
00:02:26,840 --> 00:02:28,330
For the time being, one, two, three.

38
00:02:28,670 --> 00:02:29,330
Let's send.

39
00:02:29,720 --> 00:02:31,550
Now we have get single order.

40
00:02:31,970 --> 00:02:32,540
Awesome.

41
00:02:33,230 --> 00:02:34,280
Let's close again.

42
00:02:34,280 --> 00:02:35,030
Some tabs.

43
00:02:36,450 --> 00:02:39,930
And then let's copy this request.

44
00:02:41,190 --> 00:02:43,140
And we're looking for a different name.

45
00:02:43,470 --> 00:02:44,520
I'll say update.

46
00:02:45,860 --> 00:02:49,790
Or run will also change.

47
00:02:51,120 --> 00:02:52,500
The method.

48
00:02:52,920 --> 00:02:56,360
So go here with batch, say it.

49
00:02:56,740 --> 00:02:57,990
Send update order.

50
00:02:57,990 --> 00:03:03,870
And lastly, we want to show the orders for the current user.

51
00:03:04,500 --> 00:03:13,110
So let's go up and let's say here ad request and also show current user orders.

52
00:03:14,240 --> 00:03:20,810
Orders and then you are all here is going to be the euro variable.

53
00:03:21,080 --> 00:03:27,830
Forward slash orders and then we go with forward slash and now let me double check show all my orders

54
00:03:28,320 --> 00:03:29,180
that are out.

55
00:03:29,660 --> 00:03:30,350
I went with.

56
00:03:31,720 --> 00:03:37,380
And copy and paste, and we should get back, get current user word.

57
00:03:37,750 --> 00:03:41,170
So with this in place, we have the general structure.

58
00:03:41,620 --> 00:03:48,160
We can test that in the post man, and everything works so now can start finally working on the controllers.

