Skip to content

Commit

Permalink
chore: add back all routes to wrangler.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
vcokltfre committed May 25, 2022
1 parent d9540a8 commit fc07916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,9 @@ async function createPaste(request: Request): Promise<Response> {
try {
requestData = JSON.parse(data);
} catch (e) {
requestData = {
content: data,
language: "python",
secure: false,
};
/* return new Response(null, {
return new Response(null, {
status: 422,
}); */ // This will be re-added after a week
});
}

if (!requestData.content) {
Expand Down
7 changes: 6 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name = "workbin"
account_id = "c8526a45c47706d6c69f8d997004bd7a"
route = "workbin.dev/*"
routes = [
"workbin.dev/*",
"paste.disnake.dev/*",
"paste.nextcord.dev/*",
"p.vco.sh/*",
]
compatibility_date = "2021-12-19"
kv_namespaces = [
{ binding = "WORKBIN", id = "a20fc5453a25469282397e99003e2f9b", preview_id = "a20fc5453a25469282397e99003e2f9b" },
Expand Down

0 comments on commit fc07916

Please sign in to comment.