You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
459 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. package main
  2. type Routes []Route
  3. var routes = Routes{
  4. Route{
  5. "Index",
  6. "GET",
  7. "/",
  8. Index,
  9. },
  10. Route{
  11. "GetServer",
  12. "GET",
  13. "/getserver",
  14. GetServer,
  15. },
  16. Route{
  17. "GetIDs",
  18. "GET",
  19. "/ids",
  20. GetIDs,
  21. },
  22. Route{
  23. "GetNewID",
  24. "GET",
  25. "/newid",
  26. GetNewID,
  27. },
  28. Route{
  29. "GetBlindAndSendToSign",
  30. "GET",
  31. "/blindandsendtosign/{idKey}",
  32. GetBlindAndSendToSign,
  33. },
  34. Route{
  35. "GetVerify",
  36. "GET",
  37. "/verify/{idKey}",
  38. GetVerify,
  39. },
  40. }