Skip to content

Commit

Permalink
Rename /clean to /purge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutger van Deelen committed May 18, 2020
1 parent 254d004 commit c834fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clean_streamer_ui_db.sh → purge-streamer-ui-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ if [ -z "$1" ]; then
exit 1
fi

echo "cleaning streamer ui db ..."
set -a && source env.sh && set +a && curl -X POST -u $STREAMER_UI_DB_USER:$STREAMER_UI_DB_PASSWORD -i -H 'Accept:application/json' $1/clean
echo "Purge streamer ui db ..."
set -a && source env.sh && set +a && curl -X POST -u $STREAMER_UI_DB_USER:$STREAMER_UI_DB_PASSWORD -i -H 'Accept:application/json' $1/purge
2 changes: 1 addition & 1 deletion streamer-ui/packages/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ app.post('/upload/submit',
upload.submit);

// POST Purge database tables for admin user
app.post('/clean',
app.post('/purge',
auth.hasBasicAuthHeader,
auth.verifyAdminCredentials,
content.hasJson,
Expand Down

0 comments on commit c834fe7

Please sign in to comment.