move json to api, change tile loading api
This commit is contained in:
@@ -43,6 +43,16 @@ defmodule MoundHuntersWeb.Router do
|
||||
MoundHuntersWeb.ApiController.get_share(conn)
|
||||
end
|
||||
|
||||
# Tile metadata API
|
||||
get "/api/meta/tile/:id" do
|
||||
conn = put_private(conn, :path_params, %{"id" => id})
|
||||
MoundHuntersWeb.ApiController.get_tile(conn)
|
||||
end
|
||||
|
||||
get "/api/meta/tile" do
|
||||
MoundHuntersWeb.ApiController.get_tile_by_coords(conn)
|
||||
end
|
||||
|
||||
# Health check
|
||||
get "/health" do
|
||||
send_resp(conn, 200, Jason.encode!(%{status: "ok"}))
|
||||
|
||||
Reference in New Issue
Block a user