onmetal-dev / metal

bare metal PaaS
https://www.onmetal.dev
GNU Affero General Public License v3.0
4 stars 0 forks source link

refactor urls #104

Closed rgarcia closed 2 weeks ago

rgarcia commented 2 weeks ago

[!IMPORTANT] Refactor URL handling by introducing a centralized urls package, updating templates and handlers to improve maintainability and consistency.

  • URL Refactoring:
    • Introduced urls package to centralize URL handling.
    • Replaced hardcoded URLs with urls package references in templates like login.templ, signup.templ, onboarding.templ, and dashboard.templ.
    • Updated handlers in main.go and other files to use urls package for URL rendering.
  • Template Changes:
    • Modified Login, SignUpPage, Onboarding, and other templates to use urls package for URL generation.
    • Ensured all form actions and links use the new URL rendering method.
  • Code Generation:
    • Regenerated corresponding *_templ.go files to reflect template changes.

This description was created by Ellipsis for 41cd710e35fa0a877a0517fac77fa5d01672467c. It will automatically update as commits are pushed.