|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
# 编程内容
|
|
|
|
|
json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not)
|
|
|
|
|
json.(@hack, :name, :description, :language, :difficult, :category, :time_limit, :open_or_not, :status)
|
|
|
|
|
|
|
|
|
|
# 代码
|
|
|
|
|
json.language @hack.language
|
|
|
|
|