Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions kernel_ai/http/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,30 @@ def linux_devices_subsystem_html():
return redirect("/linux-devices-subsystem", code=301)


def linux_ebpf_subsystem_page():
return render_template("linux-ebpf-subsystem.html")


def ebpf_page_legacy():
return redirect("/linux-ebpf-subsystem", code=301)


def linux_ebpf_subsystem_html():
return redirect("/linux-ebpf-subsystem", code=301)


def linux_ebpf_cyberlab_page():
return render_template("linux-ebpf-cyberlab.html")


def ebpf_lab_page_legacy():
return redirect("/linux-ebpf-cyberlab", code=301)


def linux_ebpf_cyberlab_html():
return redirect("/linux-ebpf-cyberlab", code=301)


def health_check():
return jsonify(
{
Expand Down
3 changes: 3 additions & 0 deletions kernel_ai/views/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
("/linux-ebpf-subsystem", "linux_ebpf_subsystem_page", h.linux_ebpf_subsystem_page),
("/ebpf", "ebpf_page_legacy", h.ebpf_page_legacy),
("/linux-ebpf-subsystem.html", "linux_ebpf_subsystem_html", h.linux_ebpf_subsystem_html),
("/linux-ebpf-cyberlab", "linux_ebpf_cyberlab_page", h.linux_ebpf_cyberlab_page),
("/ebpf-lab", "ebpf_lab_page_legacy", h.ebpf_lab_page_legacy),
("/linux-ebpf-cyberlab.html", "linux_ebpf_cyberlab_html", h.linux_ebpf_cyberlab_html),
("/health", "health_check", h.health_check),
]

Expand Down
Loading