route.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. GNU GENERAL PUBLIC LICENSE
  3. Version 3, 29 June 2007
  4. Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
  5. Everyone is permitted to copy and distribute verbatim copies
  6. of this license document, but changing it is not allowed.
  7. http-wokou, An HTTP Proxying framework for bypassing DNS Security
  8. Copyright (C) 2024 Russell Hrubesky, ChiralWorks Software LLC
  9. This program is free software: you can redistribute it and/or modify
  10. it under the terms of the GNU General Public License as published by
  11. the Free Software Foundation, either version 3 of the License, or
  12. (at your option) any later version.
  13. This program is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. GNU General Public License for more details.
  17. You should have received a copy of the GNU General Public License
  18. along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. */
  20. package main
  21. import (
  22. "fmt"
  23. httpserver "git.aetherial.dev/aeth/http-proxy/pkg"
  24. )
  25. func main() {
  26. rmaps := httpserver.LoadPageMods("./config/pagemod/rewrite.json")
  27. for i := range rmaps.Content {
  28. fmt.Printf("%+v\n", rmaps.Content[i])
  29. }
  30. }