|
|
@ -13,6 +13,7 @@ module Mobile
|
|
|
|
requires :container_type, type: String
|
|
|
|
requires :container_type, type: String
|
|
|
|
end
|
|
|
|
end
|
|
|
|
post do
|
|
|
|
post do
|
|
|
|
|
|
|
|
begin
|
|
|
|
authenticate!
|
|
|
|
authenticate!
|
|
|
|
|
|
|
|
|
|
|
|
user = current_user
|
|
|
|
user = current_user
|
|
|
@ -57,6 +58,10 @@ module Mobile
|
|
|
|
present :page, page
|
|
|
|
present :page, page
|
|
|
|
present :status, 0
|
|
|
|
present :status, 0
|
|
|
|
present :container_type, container_type
|
|
|
|
present :container_type, container_type
|
|
|
|
|
|
|
|
rescue Exception=>e
|
|
|
|
|
|
|
|
present :status, -1
|
|
|
|
|
|
|
|
present :message, e.message
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|