mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-05 05:30:09 +01:00
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:
parent
9c336e4961
commit
3de4fa14ed
7 changed files with 757 additions and 696 deletions
7
src/types.d.ts
vendored
7
src/types.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue