mirror of https://github.com/inhji/plug_micropub
add channel as accepted query
This commit is contained in:
parent
61fd55e9c0
commit
a63d32c00b
|
@ -122,7 +122,7 @@ defmodule PlugMicropub do
|
||||||
|
|
||||||
defp get_query(conn) do
|
defp get_query(conn) do
|
||||||
case Map.fetch(conn.query_params, "q") do
|
case Map.fetch(conn.query_params, "q") do
|
||||||
{:ok, query} when query in ["config", "source", "syndicate-to"] ->
|
{:ok, query} when query in ["config", "source", "syndicate-to", "channel"] ->
|
||||||
{:ok, String.to_existing_atom(query)}
|
{:ok, String.to_existing_atom(query)}
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in New Issue