aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages/raw
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-04-11 10:27:27 -0700
committerjackyzha0 <[email protected]>2021-04-11 10:27:27 -0700
commit0144bfc9cc6c616a00a8171f3950a75ec948427e (patch)
tree101d6c12471d411e9266cffa8e90176aff2e6fdb /frontend/src/pages/raw
parentbase next bump (diff)
downloadctrl-v-0144bfc9cc6c616a00a8171f3950a75ec948427e.tar.xz
ctrl-v-0144bfc9cc6c616a00a8171f3950a75ec948427e.zip
base next refactor
Diffstat (limited to 'frontend/src/pages/raw')
-rw-r--r--frontend/src/pages/raw/index.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/src/pages/raw/index.js b/frontend/src/pages/raw/index.js
new file mode 100644
index 0000000..86db3d4
--- /dev/null
+++ b/frontend/src/pages/raw/index.js
@@ -0,0 +1,14 @@
+import React from 'react';
+import useFetchPaste from "../../http/useFetchPaste";
+import { useRouter } from 'next/router'
+
+
+export default (req, res) => {
+ const router = useRouter()
+ const { hash } = router.query
+ const { err, result } = useFetchPaste(hash)
+ res.statusCode = 200
+ res.json({
+ text: 'Hello World! This is the Next.js starter kit :D',
+ })
+} \ No newline at end of file