This repository has been archived on 2024-06-10 . You can view files and clone it, but cannot push or open issues or pull requests.
Lee
3f4c542265
Merge pull request 'Update dependency io.sentry:sentry-spring-boot-starter-jakarta to v7.10.0' (#10) from renovate/io.sentry-sentry-spring-boot-starter-jakarta-7.x into master
Reviewed-on: #10
Paste
A simple pastebin service. Running at paste.fascinated.cc.
Javascript Utility
/**
* Uploads a paste to paste.fascinated.cc
*
* @param content the content of the paste
* @returns the paste key and the URL
*/
async function uploadPaste(content: string) {
const response = await fetch("https://paste.fascinated.cc/api/upload", {
method: "POST",
body: content,
});
const json = await response.json();
if (!response.ok) {
throw new Error(json.message);
}
return {
...json,
url: `https://paste.fascinated.cc/${json.key}`,
};
}
console.log(await uploadPaste("Hello, World!"));
Description
Languages
Java
81.2%
HTML
12.5%
JavaScript
4%
Dockerfile
2.3%