diff --git a/public/USAGE.md b/public/USAGE.md deleted file mode 100644 index 15bf138..0000000 --- a/public/USAGE.md +++ /dev/null @@ -1,17 +0,0 @@ -## APIs -### Put -The upload function listens on `/api/upload` for PUT or POST requests. The upload is stored in Azure blob storage and a UUID appended to a URL is returned to the client in the format `https://contoso.com/UUID` - -#### Example -##### Basic upload -``` -curl -T test.md https://contoso.com/api/upload -``` - -##### HTML upload -``` -curl -H "Content-Type: text/html" -T test.html https://contoso.com/api/upload -``` - -### Get -The get function listens on `/api/get` and is only intended to be used by the SWA to request a blob based on the UUID in the URL. diff --git a/src/usage.js b/src/usage.js deleted file mode 100644 index 83f1b94..0000000 --- a/src/usage.js +++ /dev/null @@ -1,12 +0,0 @@ -import { marked } from 'marked'; -import DOMPurify from 'dompurify'; - -export function loadUsage() { - fetch('USAGE.md') - .then(response => response.text()) - .then(text => { - const rawMarkup = marked(text); - const cleanMarkup = DOMPurify.sanitize(rawMarkup); - document.getElementById('usage').innerHTML = cleanMarkup; - }); -}