Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe5745 committed Oct 10, 2024
1 parent e49683b commit 08c9dca
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/router.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import gleam/string
import gleam/string_builder
import wisp.{type Request, type Response}

/// The HTTP request handler- your application!
///
pub fn handle_request(req: Request, ctx: Context) -> Response {
use _req <- web.middleware(req, ctx)

Expand All @@ -20,18 +18,16 @@ pub fn handle_request(req: Request, ctx: Context) -> Response {
|> list.first

let number_strings = list.map(regular_numbers, int.to_string)
// let joined_string = number_strings |> string.join(", ")
let html =
string_builder.from_string(generate_lottery_html(
string_builder.from_string(generate_html(
number_strings,
int.to_string(strong_number),
))

// Return a 200 OK response with the body and a HTML content type.
wisp.html_response(html, 200)
}

pub fn generate_lottery_html(
pub fn generate_html(
regular_numbers: List(String),
strong_number: String,
) -> String {
Expand Down

0 comments on commit 08c9dca

Please sign in to comment.