view_w_random.go 311 B

1234567891011121314151617
  1. package route
  2. import (
  3. "opennamu/route/tool"
  4. )
  5. func View_w_random(config tool.Config) string {
  6. db := tool.DB_connect()
  7. defer tool.DB_close(db)
  8. api_data := Api_w_random(config)
  9. title := api_data["data"]
  10. redirect := tool.Get_redirect("/w/" + tool.Url_parser(title))
  11. return redirect
  12. }