+
NightX Client File Uploader
+
+ {`/s -> URL Shortener\n`}
+ {`/s/:id -> Redirecting to Long URL\n`}
+ {`/p -> Paste Bin\n`}
+ {`/p/:id -> Paste by specific ID\n`}
+ {`/raw/:id -> Raw Paste by specific ID\n`}
+ {`/i -> Image Uploader\n`}
+ {`/i/:id -> Image by specific ID\n`}
+ {`/i/raw/:id -> Raw Image by specific ID\n`}
+ {`/api/:type/delete -> Delete model by type\n`}
+ {`/api/files -> Get all files in server directory\n`}
+ {`/api/temp -> Get temporary files in /tmp/nxc\n`}
+ {`POST /api/image -> Send new image to server\n`}
+ {`POST /api/paste -> Send new paste to server\n`}
+ {`POST /api/url -> Send new URL to server\n`}
+
+
+ >
+ );
+}
diff --git a/src/pages/p/[id].tsx b/src/pages/p/[id].tsx
new file mode 100644
index 0000000..09d91ba
--- /dev/null
+++ b/src/pages/p/[id].tsx
@@ -0,0 +1,77 @@
+import { GetServerSideProps } from "next";
+import Header from "@/components/Header";
+import Highlight from "react-highlight";
+import styles from "@/styles/Code.module.css";
+import { getPaste } from "@/utils/database";
+
+interface Data {
+ code: string;
+}
+
+export default function CodeDisplay({ code }: Data) {
+ return (
+ <>
+