Skip to content

Commit

Permalink
[WIP] remove Gettext and UserSocket, POST requests work; unittests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
leszke committed Mar 19, 2020
1 parent 9d878a8 commit 018bf31
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ config :mongoose_push,
config :mongoose_push, MongoosePushWeb.Endpoint,
http: [port: 8445],
debug_errors: true,
code_reloader: true,
code_reloader: false,
check_origin: false,
server: true
3 changes: 0 additions & 3 deletions lib/mongoose_push_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ defmodule MongoosePushWeb do
use Phoenix.Controller, namespace: MongoosePushWeb

import Plug.Conn
import MongoosePushWeb.Gettext
alias MongoosePushWeb.Router.Helpers, as: Routes
end
end
Expand All @@ -37,7 +36,6 @@ defmodule MongoosePushWeb do
import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1]

import MongoosePushWeb.ErrorHelpers
import MongoosePushWeb.Gettext
alias MongoosePushWeb.Router.Helpers, as: Routes
end
end
Expand All @@ -53,7 +51,6 @@ defmodule MongoosePushWeb do
def channel do
quote do
use Phoenix.Channel
import MongoosePushWeb.Gettext
end
end

Expand Down
4 changes: 0 additions & 4 deletions lib/mongoose_push_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ defmodule MongoosePushWeb.Endpoint do
signing_salt: "URIBGSwL"
]

socket "/socket", MongoosePushWeb.UserSocket,
websocket: true,
longpoll: false

# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phx.digest
Expand Down
24 changes: 0 additions & 24 deletions lib/mongoose_push_web/gettext.ex

This file was deleted.

0 comments on commit 018bf31

Please sign in to comment.