1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

redirect /cossgpt to example query result

This commit is contained in:
zafer 2024-05-04 14:10:15 +03:00
parent ce30568fdb
commit 30be48155f

View File

@ -86,14 +86,13 @@ defmodule AlgoraWeb.COSSGPTLive do
:for={ :for={
suggestion_group <- [ suggestion_group <- [
[ [
"Benefits of going open source",
"Business models and pricing", "Business models and pricing",
"Choosing a license", "Choosing a license",
"How to hire engineers" "How to hire engineers",
"B2B startup metrics"
], ],
[ [
"How to get your first customers", "How to get your first customers",
"B2B startup metrics",
"Setting KPIs and goals", "Setting KPIs and goals",
"How to fundraise", "How to fundraise",
"Developer marketing" "Developer marketing"
@ -201,7 +200,14 @@ defmodule AlgoraWeb.COSSGPTLive do
end end
@impl true @impl true
def mount(_params, _session, socket) do def mount(params, _session, socket) do
socket =
if !params["query"] do
socket |> push_navigate(to: ~p"/cossgpt?#{%{query: "Benefits of going open source"}}")
else
socket
end
{:ok, socket} {:ok, socket}
end end