init-func.go 601 B

123456789101112131415161718
  1. package routers
  2. import (
  3. controllers_func "kkscrap-go/controllers/func"
  4. controllers_scraper "kkscrap-go/controllers/scraper"
  5. )
  6. func init() {
  7. AddRoute(Route{[]string{"POST"}, "/product-page-parse", controllers_scraper.ProductPageParse})
  8. AddRoute(Route{[]string{"POST"}, "/solution-type-get", controllers_scraper.SolutionTypeGet})
  9. AddRoute(Route{[]string{"POST"}, "/item-url-scrap", controllers_scraper.ItemUrlScrap})
  10. AddRoute(Route{[]string{"POST"}, "/gate-token-test", controllers_func.GateTokenTest})
  11. AddRoute(Route{[]string{"POST"}, "/gate-token-get", controllers_func.GateTokenGet})
  12. }