Browse Source

change site page response

pull/338/head
呱呱呱 2 years ago
parent
commit
bfa5c18304
2 changed files with 6 additions and 1 deletions
  1. +0
    -1
      app/views/site_pages/show.jbuilder
  2. +6
    -0
      app/views/site_pages/show.json.jbuilder

+ 0
- 1
app/views/site_pages/show.jbuilder View File

@@ -1 +0,0 @@
json.partial! 'info', locals: {page: @page}

+ 6
- 0
app/views/site_pages/show.json.jbuilder View File

@@ -0,0 +1,6 @@
json.status 0
json.message "success"
json.data {
json.partial! 'info', locals: {page: @page}
}


Loading…
Cancel
Save