So we have our menu item and we have our template, so let's set up some routes on the front end and
all we're doing right now is setting up the front end pages, because all of the logic, of course,
is handled in the back end.
So in rootstock go right here in the protected section at a route, I'll add one for all users.
Max doGet, slash admin, slash all dash users, and we'll call a non-existent handler, all users and
duplicate that and do one for individual users for adding or editing them.
And of course, it'll be slash admin, slash all users and then some I.D. So I'll just put it in there
and we can grab whatever we need from that placeholder and we'll make the handler one user.
OK, now those don't exist.
So let's go to handlers.
Don't go.
And we'll just put Stobbs in there for right now.
And that may be all that we need in any case.
So here's one all subscriptions.
That's exactly the format that I need.
So I'll copy that one just to say some typing and go to the bottom and paste it twice, once, twice.
And this one will be all users and this one will be one user.
And all users use the template, all users.
And we're not handing in any data right now.
So that's fine.
No additional data apart from the default data.
And this one goes to one dash user.
And let's fix our comments, one user shows one user for add, slash, edit, slash, delete, and this
one, all users,
all users page.
OK, let's give this a try.
So make start.
Is running.
So let's go back to our Web browser and I'll go to the home page.
Yep, I'm still logged in.
I have the admin menu, so I should be able to go to all users and get my dummy template.
And there it is.
And this one should show the one user page.
All right.
So that works.
So the next step is to set up some database queries to let me get a list of all users.
And of course, we just have one right now and put some JavaScript in place that we'll call the back
end to get that as Jason.
And we'll get started on that in the next lecture.