feat(server): add safety checks during dev (#1489)
Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com>
This commit is contained in:
co-authored by
Reed von Redwitz
parent
430be774e2
commit
a7fe9d04f1
@@ -427,3 +427,16 @@ export interface PluginRoute {
|
||||
// deno-lint-ignore no-explicit-any
|
||||
handler?: Handler<any, any> | Handlers<any, any>;
|
||||
}
|
||||
|
||||
export interface StaticFile {
|
||||
/** The URL to the static file on disk. */
|
||||
localUrl: URL;
|
||||
/** The path to the file as it would be in the incoming request. */
|
||||
path: string;
|
||||
/** The size of the file. */
|
||||
size: number;
|
||||
/** The content-type of the file. */
|
||||
contentType: string;
|
||||
/** Hash of the file contents. */
|
||||
etag: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user