Commit 37dde9ac4b9c5e59040c39b9b5f8bf33bce52f62
1 parent
0bdd449b
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
load helper before api endpoints
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/api/api.rb
| @@ -8,12 +8,12 @@ module API | @@ -8,12 +8,12 @@ module API | ||
| 8 | format :json | 8 | format :json |
| 9 | content_type :txt, "text/plain" | 9 | content_type :txt, "text/plain" |
| 10 | 10 | ||
| 11 | + helpers APIHelpers | ||
| 12 | + | ||
| 11 | mount V1::Articles | 13 | mount V1::Articles |
| 12 | mount V1::Comments | 14 | mount V1::Comments |
| 13 | mount V1::Users | 15 | mount V1::Users |
| 14 | mount Session | 16 | mount Session |
| 15 | 17 | ||
| 16 | - helpers APIHelpers | ||
| 17 | - | ||
| 18 | end | 18 | end |
| 19 | end | 19 | end |