mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
Refactor codebase
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
// Package translator provides data translation and format conversion utilities
|
||||
// for the CLI Proxy API. It includes MIME type mappings and other translation
|
||||
// functions used across different API endpoints.
|
||||
// Package misc provides miscellaneous utility functions and embedded data for the CLI Proxy API.
|
||||
// This package contains general-purpose helpers and embedded resources that do not fit into
|
||||
// more specific domain packages. It includes a comprehensive MIME type mapping for file operations.
|
||||
package misc
|
||||
|
||||
// MimeTypes is a comprehensive map of file extensions to their corresponding MIME types.
|
||||
// This is used to identify the type of file being uploaded or processed.
|
||||
// This map is used to determine the Content-Type header for file uploads and other
|
||||
// operations where the MIME type needs to be identified from a file extension.
|
||||
// The list is extensive to cover a wide range of common and uncommon file formats.
|
||||
var MimeTypes = map[string]string{
|
||||
"ez": "application/andrew-inset",
|
||||
"aw": "application/applixware",
|
||||
|
||||
Reference in New Issue
Block a user