21
22// Page components. These must have "use server-entry" so they are treated as code splitting entry points.
23▶import {Todos} from './Todos';
24
25const app = express();
· · ·
35
36app.get('/', async (req, res) => {
37▶ await render(req, res, <Todos />);
38});
39
· · ·
40app.post('/', async (req, res) => {
41▶ await handleAction(req, res, <Todos />);
42});
43
· · ·
44▶app.get('/todos/:id', async (req, res) => {
45 await render(req, res, <Todos id={Number(req.params.id)} />);
46});
· · ·
45▶ await render(req, res, <Todos id={Number(req.params.id)} />);
46});
47
+ 4 more matches in this file