fine there
This commit is contained in:
1 parent
5144d32b77
commit
ac0e720de1
4 files changed
+8
-11
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import path from "node:path";
|
||||
|
||||
import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
|
||||
export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
|
||||
|
||||
export function normalizeAttachmentRelativePath(rawRelativePath: string): string | null {
|
||||
const normalized = path.normalize(rawRelativePath).replace(/^[/\\]+/, "");
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import Mime from "@effect/platform-node/Mime";
|
||||
|
||||
export const ATTACHMENTS_ROUTE_PREFIX = "/attachments";
|
||||
|
||||
export const IMAGE_EXTENSION_BY_MIME_TYPE: Record<string, string> = {
|
||||
"image/avif": ".avif",
|
||||
"image/bmp": ".bmp",
|
||||
|
||||
@@ -37,12 +37,8 @@ import {
|
||||
OrchestrationProjectionPipeline,
|
||||
type OrchestrationProjectionPipelineShape,
|
||||
} from "../Services/ProjectionPipeline.ts";
|
||||
import { attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
|
||||
import {
|
||||
ATTACHMENTS_ROUTE_PREFIX,
|
||||
inferImageExtension,
|
||||
parseBase64DataUrl,
|
||||
} from "../../imageMime.ts";
|
||||
import { ATTACHMENTS_ROUTE_PREFIX, attachmentRouteToRelativePath } from "../../attachmentPaths.ts";
|
||||
import { inferImageExtension, parseBase64DataUrl } from "../../imageMime.ts";
|
||||
|
||||
export const ORCHESTRATION_PROJECTOR_NAMES = {
|
||||
projects: "projection.projects",
|
||||
|
||||
@@ -55,8 +55,11 @@ import { Open } from "./open";
|
||||
import { ServerConfig } from "./config";
|
||||
import { GitCore } from "./git/Services/GitCore.ts";
|
||||
import { tryHandleProjectFaviconRequest } from "./projectFaviconRoute";
|
||||
import { normalizeAttachmentRelativePath, resolveAttachmentRelativePath } from "./attachmentPaths";
|
||||
import { ATTACHMENTS_ROUTE_PREFIX } from "./imageMime.ts";
|
||||
import {
|
||||
ATTACHMENTS_ROUTE_PREFIX,
|
||||
normalizeAttachmentRelativePath,
|
||||
resolveAttachmentRelativePath,
|
||||
} from "./attachmentPaths";
|
||||
|
||||
/**
|
||||
* ServerShape - Service API for server lifecycle control.
|
||||
|
||||
Reference in new issue
Block a user