diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index cb44a6c..4c2dde8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,6 +4,7 @@
+
@@ -35,18 +36,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -55,8 +46,8 @@
-
-
+
+
@@ -65,8 +56,8 @@
-
-
+
+
@@ -76,7 +67,7 @@
-
+
@@ -85,8 +76,8 @@
-
-
+
+
@@ -96,8 +87,8 @@
-
-
+
+
@@ -105,11 +96,21 @@
+
+
+
+
+
+
+
+
+
+
-
+
@@ -119,7 +120,7 @@
-
+
@@ -219,6 +220,9 @@
+
+
+
@@ -231,36 +235,16 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -398,35 +382,36 @@
1518771982661
-
+
+
-
+
-
+
-
+
-
-
+
-
+
+
@@ -460,10 +445,6 @@
-
-
-
-
@@ -507,7 +488,6 @@
-
@@ -557,7 +537,6 @@
-
@@ -565,7 +544,6 @@
-
@@ -643,10 +621,6 @@
-
-
-
-
@@ -654,7 +628,6 @@
-
@@ -662,7 +635,6 @@
-
@@ -670,39 +642,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
@@ -710,7 +658,6 @@
-
@@ -718,7 +665,6 @@
-
@@ -734,7 +680,6 @@
-
@@ -750,13 +695,12 @@
-
-
+
@@ -765,39 +709,15 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -813,15 +733,47 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -829,8 +781,8 @@
-
-
+
+
diff --git a/README.md b/README.md
index 31a2a7a..f27ccfa 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,10 @@ Rails 5 API for Vereto Projects
Vereto NG is the first to integrate.
http://gogs.veretium.com/PromoStarr/vereto-ng
+
+# Stack
+This project uses:
+ - Rails 5 API
+ - MariaDB/MySQL Database
+- Ruby 2.5+ recommended
+
diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb
index 8efb548..931e2ce 100644
--- a/app/controllers/articles_controller.rb
+++ b/app/controllers/articles_controller.rb
@@ -5,7 +5,6 @@ class ArticlesController < ApplicationController
# GET /articles
def index
@article = Article.all.to_json(include: :user)
-
json_response(@article)
end
@@ -40,7 +39,7 @@ class ArticlesController < ApplicationController
end
def set_article
- @article = Article.find(params[:id])
+ @article = Article.find(params[:id]).to_json(include: :user)
end
end