WEBVTT 00:01.450 --> 00:06.310 So how did you make out with the challenge, I suspect you didn't find it terribly difficult, but here's 00:06.310 --> 00:08.240 how I completed it just in case. 00:09.040 --> 00:12.610 So I'm looking at all subscriptions page don't go HTML. 00:12.640 --> 00:18.400 And this is basically now, with the exception of the title here and the title here and a little bit 00:18.400 --> 00:23.980 down here in the JavaScript that I look at in the moment, virtually identical to the old sales page 00:23.980 --> 00:24.890 Dutko which HTML. 00:25.000 --> 00:32.470 So we changed the titles, left everything else the same, and down here I change this Eurail in the 00:32.740 --> 00:36.400 statement from all dush sales to all dash subscriptions. 00:36.850 --> 00:40.870 And then down here I just added a per month after the price. 00:41.360 --> 00:43.720 So that's pretty much the only change I made in here. 00:43.720 --> 00:50.440 Except of course I change this euro from admin slash sales slash ID to slash admin slash subscription 00:51.310 --> 00:51.820 a Eurail. 00:51.820 --> 00:53.990 That doesn't work right now, but we'll get to that soon. 00:54.610 --> 00:56.860 So I made those changes to the template. 00:57.160 --> 01:04.720 And then in Route's Dash API Dutko, I added a new route inside the protected part, the API slash admin, 01:05.320 --> 01:08.140 and I ended it with all dash subscriptions. 01:08.620 --> 01:13.840 The URL that I'm calling in the statement back in the template, and then I called a handler of subscriptions 01:14.110 --> 01:19.690 and that's in Handler's Dash API and it's virtually identical to the old sales handler. 01:19.780 --> 01:24.190 But instead of calling get all orders, it calls get all subscriptions. 01:24.910 --> 01:28.840 And the final change I made was in models that go here. 01:28.870 --> 01:36.670 We have geto orders which has where is recurring equals zero in the sequel. 01:37.030 --> 01:38.230 And I created another one. 01:38.920 --> 01:42.600 Get all subscriptions and change that to is recurring equals one. 01:42.880 --> 01:46.450 Now I could have collapsed these into a single function and passed a parameter. 01:46.450 --> 01:49.870 And if you did that, good for you, because that's less source code to maintain. 01:50.380 --> 01:55.180 But to keep things really clear and really simple, I just created a new function to call the database 01:55.180 --> 01:56.830 and get all subscriptions. 01:57.070 --> 01:58.300 And that's all that I did. 01:58.990 --> 02:02.200 And as always, the source code is posted to this lecture. 02:02.210 --> 02:04.750 So you can compare what I did with what you did. 02:05.050 --> 02:06.130 All right, let's move on.