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.

66 lines
739 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
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. "GetID",
  24. "GET",
  25. "/id/{keyid}",
  26. GetID,
  27. },
  28. Route{
  29. "GetNewID",
  30. "GET",
  31. "/newid",
  32. GetNewID,
  33. },
  34. Route{
  35. "GetBlindAndSendToSign",
  36. "GET",
  37. "/blindandsendtosign/{keyid}",
  38. GetBlindAndSendToSign,
  39. },
  40. Route{
  41. "GetVerify",
  42. "GET",
  43. "/verify/{keyid}",
  44. GetVerify,
  45. },
  46. Route{
  47. "GetDelete",
  48. "GET",
  49. "/delete/{keyid}",
  50. GetDelete,
  51. },
  52. Route{
  53. "PostEncrypt",
  54. "POST",
  55. "/encrypt/{keyid}",
  56. PostEncrypt,
  57. },
  58. Route{
  59. "PostDecrypt",
  60. "POST",
  61. "/decrypt/{keyid}",
  62. PostDecrypt,
  63. },
  64. }