Skip to content

Implement a Basic Routing System #4

@JimmysNetwork

Description

@JimmysNetwork

To improve code organization, readability, and security, we should implement a centralized routing system (front controller) that handles route-to-view/controller mapping. This will eliminate scattered include statements and enable better control over access, permissions, and error handling.

Benefits:

  • Prevents directory traversal and insecure includes
  • Centralizes route definitions in one place
  • Allows for role-based routing (e.g., admin-only pages)
  • Easier to maintain and scale (support for /login, /register, etc.)
  • Foundation for pretty URLs and advanced routing later

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsecuritySecurity issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions