Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
c8d1bbe
1
Parent(s):
b443a2e
...
Browse files- routes/api/joke.ts +9 -1
routes/api/joke.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
| 1 |
import { FreshContext } from "$fresh/server.ts";
|
| 2 |
|
| 3 |
-
Deno.writeTextFileSync('./test.txt', 'foo');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
// Jokes courtesy of https://punsandoneliners.com/randomness/programmer-jokes/
|
| 6 |
const JOKES = [
|
|
|
|
| 1 |
import { FreshContext } from "$fresh/server.ts";
|
| 2 |
|
| 3 |
+
// Deno.writeTextFileSync('./test.txt', 'foo');
|
| 4 |
+
|
| 5 |
+
// error: Uncaught (in promise) PermissionDenied: Permission denied (os error 13): writefile './test.txt'
|
| 6 |
+
// Deno.writeTextFileSync('./test.txt', 'foo');
|
| 7 |
+
// ^
|
| 8 |
+
// at writeFileSync (ext:deno_fs/30_fs.js:805:3)
|
| 9 |
+
// at Object.writeTextFileSync (ext:deno_fs/30_fs.js:868:10)
|
| 10 |
+
// at file:///app/routes/api/joke.ts:3:6
|
| 11 |
+
|
| 12 |
|
| 13 |
// Jokes courtesy of https://punsandoneliners.com/randomness/programmer-jokes/
|
| 14 |
const JOKES = [
|