Refactor the whole project

Use itty-router over manual routing

Extract resuable code into modules

Update copyright notice

Remove path to paste v1 homepage

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2023-11-19 02:19:27 +08:00
parent 9c336e4961
commit 3de4fa14ed
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
7 changed files with 757 additions and 696 deletions

7
src/types.d.ts vendored
View file

@ -1,3 +1,10 @@
import { IRequest } from 'itty-router';
export type ERequest = {
is_browser: boolean;
// match_etag?: string;
} & IRequest;
export interface PasteIndexEntry {
title?: string;
mime_type?: string;