Add pruneall script and updated server to handle new field types

pull/10/head
sigonasr2, Sig, Sigo 3 years ago
parent f5af5be588
commit d1e49fcffe
  1. 4
      pruneall
  2. 4
      server/app.js

@ -0,0 +1,4 @@
sudo docker image prune
sudo docker container prune
sudo docker volume prune
sudo docker system prune --volumes

@ -111,7 +111,7 @@ const ENDPOINTDATA=[
},
{
endpoint:"builds",
requiredfields:["user_id","creator","build_name","class1","created_on","last_modified","data"],
requiredfields:["users_id","creator","build_name","class1","created_on","last_modified","data"],
optionalfields:["class2","likes"],
excludedfields:[] //Fields to not output in GET.
},
@ -165,7 +165,7 @@ const ENDPOINTDATA=[
},
{
endpoint:"users",
requiredfields:["username","email","created_on","role_id"],
requiredfields:["username","email","created_on","roles_id"],
optionalfields:["avatar"],
excludedfields:["password_hash"] //Fields to not output in GET.
}

Loading…
Cancel
Save