Skip to content

Commit

Permalink
a new home for encoded_ast
Browse files Browse the repository at this point in the history
  • Loading branch information
c-brenn committed Mar 26, 2017
1 parent 663fbd4 commit fb202d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panacea/web/controllers/ast_controller.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
defmodule Panacea.AstController do
use Panacea.Web, :controller

def to_pml(conn, %{"ast" => encoded_ast}) do encoded_ast
def to_pml(conn, %{"ast" => encoded_ast}) do
encoded_ast
|> Panacea.Pml.Ast.decode()
|> to_pml()
|> respond(conn)
Expand Down

0 comments on commit fb202d4

Please sign in to comment.