Add configuration files and update project documentation
- Introduced .editorconfig for consistent coding styles across the project. - Added .golangci.yml for Go linting configuration. - Updated AGENTS.md to clarify project structure and components. - Enhanced CONTRIBUTING.md with Makefile usage for common tasks. - Updated Dockerfiles to use Go 1.24 and improved build instructions. - Refined README.md and deployment documentation for clarity. - Added testing documentation in testing.md for backend and frontend tests. - Introduced Makefile for streamlined development commands and tasks.
This commit is contained in:
@@ -10,7 +10,7 @@ export function viteUriGuard(): Plugin {
|
||||
name: 'vite-uri-guard',
|
||||
apply: 'serve',
|
||||
configureServer(server) {
|
||||
const guard = (req: any, res: any, next: () => void) => {
|
||||
const guard = (req: { url?: string; originalUrl?: string }, res: { statusCode: number; setHeader: (k: string, v: string) => void; end: (body: string) => void }, next: () => void) => {
|
||||
const raw = req.url ?? req.originalUrl ?? ''
|
||||
try {
|
||||
decodeURI(raw)
|
||||
|
||||
Reference in New Issue
Block a user