ApiControllers: remove useless meta data

This commit is contained in:
Simon Lehericey 2017-05-23 10:46:37 +02:00
parent 15874fb3ae
commit f1b923e30f
2 changed files with 0 additions and 11 deletions

View file

@ -6,9 +6,6 @@ class API::V1::DossiersController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure inconnue"
meta champs: {
}
def index
procedure = current_administrateur.procedures.find(params[:procedure_id])
dossiers = procedure.dossiers.where.not(state: :draft).paginate(page: params[:page])
@ -25,10 +22,6 @@ class API::V1::DossiersController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure ou dossier inconnu"
meta champs: {
}
def show
procedure = current_administrateur.procedures.find(params[:procedure_id])
dossier = procedure.dossiers.find(params[:id])

View file

@ -5,10 +5,6 @@ class API::V1::ProceduresController < APIController
error code: 401, desc: "Non authorisé"
error code: 404, desc: "Procédure inconnue"
meta champs: {
}
def show
procedure = current_administrateur.procedures.find(params[:id]).decorate