Skip to content

Commit 05f565b

Browse files
committed
refactor: move example
1 parent 8281d7d commit 05f565b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/upload-pages-artifact@v2
3838
with:
3939
# Upload entire repository
40-
path: './lib/web_push_elixir'
40+
path: './example'
4141
- name: Deploy to GitHub Pages
4242
id: deployment
4343
uses: actions/deploy-pages@v2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/web_push_elixir/mock_server.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,36 @@ defmodule WebPushElixir.MockServer do
1212
get "/" do
1313
conn
1414
|> put_resp_header("content-type", "text/html; charset=utf-8")
15-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/index.html")
15+
|> Plug.Conn.send_file(200, "./example/index.html")
1616
end
1717

1818
get "/app.webmanifest" do
1919
conn
2020
|> put_resp_header("content-type", "application/manifest+json")
21-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/app.webmanifest")
21+
|> Plug.Conn.send_file(200, "./example/app.webmanifest")
2222
end
2323

2424
get "/main.js" do
2525
conn
2626
|> put_resp_header("content-type", "application/x-javascript")
27-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/main.js")
27+
|> Plug.Conn.send_file(200, "./example/main.js")
2828
end
2929

3030
get "/service-worker.js" do
3131
conn
3232
|> put_resp_header("content-type", "application/x-javascript")
33-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/service-worker.js")
33+
|> Plug.Conn.send_file(200, "./example/service-worker.js")
3434
end
3535

3636
get "/web-push-elixir/service-worker.js" do
3737
conn
3838
|> put_resp_header("content-type", "application/x-javascript")
39-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/service-worker.js")
39+
|> Plug.Conn.send_file(200, "./example/service-worker.js")
4040
end
4141

4242
get "/favicon.ico" do
4343
conn
4444
|> put_resp_header("content-type", "image/x-icon")
45-
|> Plug.Conn.send_file(200, "./lib/web_push_elixir/favicon.ico")
45+
|> Plug.Conn.send_file(200, "./example/favicon.ico")
4646
end
4747
end

0 commit comments

Comments
 (0)