WEBVTT 00:00.700 --> 00:06.040 So we have our menu item and we have our template, so let's set up some routes on the front end and 00:06.040 --> 00:09.970 all we're doing right now is setting up the front end pages, because all of the logic, of course, 00:09.970 --> 00:11.560 is handled in the back end. 00:12.610 --> 00:18.220 So in rootstock go right here in the protected section at a route, I'll add one for all users. 00:18.360 --> 00:27.160 Max doGet, slash admin, slash all dash users, and we'll call a non-existent handler, all users and 00:27.340 --> 00:32.430 duplicate that and do one for individual users for adding or editing them. 00:32.440 --> 00:38.170 And of course, it'll be slash admin, slash all users and then some I.D. So I'll just put it in there 00:38.470 --> 00:45.430 and we can grab whatever we need from that placeholder and we'll make the handler one user. 00:46.060 --> 00:47.410 OK, now those don't exist. 00:47.410 --> 00:48.460 So let's go to handlers. 00:48.460 --> 00:49.060 Don't go. 00:49.420 --> 00:51.130 And we'll just put Stobbs in there for right now. 00:51.700 --> 00:53.600 And that may be all that we need in any case. 00:54.220 --> 00:56.050 So here's one all subscriptions. 00:56.170 --> 00:57.990 That's exactly the format that I need. 00:58.060 --> 01:04.290 So I'll copy that one just to say some typing and go to the bottom and paste it twice, once, twice. 01:04.930 --> 01:09.970 And this one will be all users and this one will be one user. 01:12.040 --> 01:15.160 And all users use the template, all users. 01:15.580 --> 01:17.350 And we're not handing in any data right now. 01:17.350 --> 01:18.070 So that's fine. 01:18.340 --> 01:20.620 No additional data apart from the default data. 01:21.160 --> 01:24.040 And this one goes to one dash user. 01:28.000 --> 01:40.810 And let's fix our comments, one user shows one user for add, slash, edit, slash, delete, and this 01:40.810 --> 01:42.790 one, all users, 01:45.940 --> 01:47.680 all users page. 01:48.160 --> 01:49.400 OK, let's give this a try. 01:50.050 --> 01:50.980 So make start. 01:54.890 --> 01:55.490 Is running. 01:55.550 --> 02:00.060 So let's go back to our Web browser and I'll go to the home page. 02:00.470 --> 02:01.880 Yep, I'm still logged in. 02:01.880 --> 02:06.170 I have the admin menu, so I should be able to go to all users and get my dummy template. 02:06.800 --> 02:07.490 And there it is. 02:07.800 --> 02:11.090 And this one should show the one user page. 02:12.080 --> 02:12.560 All right. 02:12.560 --> 02:13.360 So that works. 02:13.610 --> 02:18.470 So the next step is to set up some database queries to let me get a list of all users. 02:18.470 --> 02:23.900 And of course, we just have one right now and put some JavaScript in place that we'll call the back 02:23.900 --> 02:26.000 end to get that as Jason. 02:26.000 --> 02:28.160 And we'll get started on that in the next lecture.