So how did you make out with the challenge, I suspect you didn't find it terribly difficult, but here's
how I completed it just in case.
So I'm looking at all subscriptions page don't go HTML.
And this is basically now, with the exception of the title here and the title here and a little bit
down here in the JavaScript that I look at in the moment, virtually identical to the old sales page
Dutko which HTML.
So we changed the titles, left everything else the same, and down here I change this Eurail in the
statement from all dush sales to all dash subscriptions.
And then down here I just added a per month after the price.
So that's pretty much the only change I made in here.
Except of course I change this euro from admin slash sales slash ID to slash admin slash subscription
a Eurail.
That doesn't work right now, but we'll get to that soon.
So I made those changes to the template.
And then in Route's Dash API Dutko, I added a new route inside the protected part, the API slash admin,
and I ended it with all dash subscriptions.
The URL that I'm calling in the statement back in the template, and then I called a handler of subscriptions
and that's in Handler's Dash API and it's virtually identical to the old sales handler.
But instead of calling get all orders, it calls get all subscriptions.
And the final change I made was in models that go here.
We have geto orders which has where is recurring equals zero in the sequel.
And I created another one.
Get all subscriptions and change that to is recurring equals one.
Now I could have collapsed these into a single function and passed a parameter.
And if you did that, good for you, because that's less source code to maintain.
But to keep things really clear and really simple, I just created a new function to call the database
and get all subscriptions.
And that's all that I did.
And as always, the source code is posted to this lecture.
So you can compare what I did with what you did.
All right, let's move on.