• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mirego / accent / #785

21 Mar 2025 02:02PM UTC coverage: 76.157% (+0.5%) from 75.67%
#785

push

github

simonprev
Fix types

2271 of 2982 relevant lines covered (76.16%)

23.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/web/controllers/webapp_controller.ex
1
defmodule Accent.WebAppController do
2
  use Plug.Builder
3

4
  plug(:index)
5

6
  @doc """
7
  Serves the static app built from the webapp folder.
8

9
  Since the build operation is done asynchronously on deploy, we need a maintenance page until
10
  the index.html is available.
11
  """
12
  def index(conn, _) do
13
    conn
14
    |> put_resp_header("content-type", "text/html; charset=utf-8")
15
    |> maybe_clear_session()
16
    |> send_resp(:ok, Accent.WebappView.render())
2✔
17
  end
18

19
  defp maybe_clear_session(conn) do
20
    case Map.get(conn.query_params, "logout") do
2✔
21
      nil -> conn
2✔
22
      _ -> put_session(conn, :user_id, nil)
×
23
    end
24
  end
25
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc