#!/bin/sh

if [[ ${REQUEST_METHOD} == "POST" ]]; then
    /usr/bin/factory-default.sh
    exit 0
fi


echo "Content-type: text/html"
echo "Status: 501"
echo ""
echo '<html>'
echo '<head>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo '<title>Factory default</title>'
echo '</head>'
echo '<body>'
echo " ${REQUEST_METHOD} is not implemented for endpoint!"
echo '</body>'
echo '</html>'


