2021-05-01 23:26:48 +02:00
|
|
|
require "json"
|
|
|
|
|
|
|
|
class Articles::Show < BrowserAction
|
|
|
|
get "/post/:post_id" do
|
|
|
|
if Lucky::Env.use_local?
|
|
|
|
response = LocalClient.post_data(post_id)
|
|
|
|
else
|
|
|
|
response = MediumClient.post_data(post_id)
|
|
|
|
end
|
2021-05-15 23:05:28 +02:00
|
|
|
html ShowPage, post_response: response
|
2021-05-01 23:26:48 +02:00
|
|
|
end
|
|
|
|
end
|