|
2423 | 2423 | "name": "stdout", |
2424 | 2424 | "output_type": "stream", |
2425 | 2425 | "text": [ |
2426 | | - "Set to 2024-12-20 19:13:21.676722\n" |
| 2426 | + "Set to 2024-12-20 19:21:33.748637\n" |
2427 | 2427 | ] |
2428 | 2428 | }, |
2429 | 2429 | { |
2430 | 2430 | "data": { |
2431 | 2431 | "text/plain": [ |
2432 | | - "'Session time: 2024-12-20 19:13:21.676722'" |
| 2432 | + "'Session time: 2024-12-20 19:21:33.748637'" |
2433 | 2433 | ] |
2434 | 2434 | }, |
2435 | 2435 | "execution_count": null, |
|
2665 | 2665 | "\n", |
2666 | 2666 | " def to_app(self, app):\n", |
2667 | 2667 | " \"Add routes to `app`\"\n", |
2668 | | - " for args in self.routes: \n", |
2669 | | - " print(args)\n", |
2670 | | - " app._add_route(*args)\n", |
| 2668 | + " for args in self.routes: app._add_route(*args)\n", |
2671 | 2669 | " for args in self.wss: app._add_ws(*args)\n", |
2672 | 2670 | " \n", |
2673 | 2671 | " def ws(self, path:str, conn=None, disconn=None, name=None, middleware=None):\n", |
|
2715 | 2713 | "execution_count": null, |
2716 | 2714 | "id": "cd413b0d", |
2717 | 2715 | "metadata": {}, |
2718 | | - "outputs": [ |
2719 | | - { |
2720 | | - "name": "stdout", |
2721 | | - "output_type": "stream", |
2722 | | - "text": [ |
2723 | | - "(<function get>, '/hi', None, None, True, <function noop_body>)\n", |
2724 | | - "(<function post>, '/hi', None, None, True, <function noop_body>)\n", |
2725 | | - "(<function ho>, '/ho', None, None, True, <function noop_body>)\n", |
2726 | | - "(<function show_host>, '/hostie', None, None, True, <function noop_body>)\n", |
2727 | | - "(<function yoyo>, '/yoyo', None, None, True, <function noop_body>)\n", |
2728 | | - "(<function index>, '/', None, None, True, <function noop_body>)\n" |
2729 | | - ] |
2730 | | - } |
2731 | | - ], |
| 2716 | + "outputs": [], |
2732 | 2717 | "source": [ |
2733 | 2718 | "app,cli,_ = get_cli(FastHTML())\n", |
2734 | 2719 | "ar.to_app(app)" |
|
2820 | 2805 | "execution_count": null, |
2821 | 2806 | "id": "77ce8548", |
2822 | 2807 | "metadata": {}, |
2823 | | - "outputs": [ |
2824 | | - { |
2825 | | - "name": "stdout", |
2826 | | - "output_type": "stream", |
2827 | | - "text": [ |
2828 | | - "(<function get>, '/products/hi', None, None, True, <function noop_body>)\n", |
2829 | | - "(<function post>, '/products/hi', None, None, True, <function noop_body>)\n", |
2830 | | - "(<function ho>, '/products/ho', None, None, True, <function noop_body>)\n", |
2831 | | - "(<function show_host>, '/products/hostie', None, None, True, <function noop_body>)\n", |
2832 | | - "(<function yoyo>, '/products/yoyo', None, None, True, <function noop_body>)\n", |
2833 | | - "(<function index>, '/products/', None, None, True, <function noop_body>)\n" |
2834 | | - ] |
2835 | | - } |
2836 | | - ], |
| 2808 | + "outputs": [], |
2837 | 2809 | "source": [ |
2838 | 2810 | "app,cli,_ = get_cli(FastHTML())\n", |
2839 | 2811 | "ar2.to_app(app)" |
|
2978 | 2950 | { |
2979 | 2951 | "data": { |
2980 | 2952 | "text/plain": [ |
2981 | | - "'Cookie was set at time 19:13:22.543473'" |
| 2953 | + "'Cookie was set at time 19:21:34.644743'" |
2982 | 2954 | ] |
2983 | 2955 | }, |
2984 | 2956 | "execution_count": null, |
|
0 commit comments