2018-03-27 23:32:49 +00:00
|
|
|
package routetests
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2017-06-30 16:12:14 +00:00
|
|
|
var routeTests = map[string][]string{
|
2017-06-14 20:13:30 +00:00
|
|
|
// User
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/+Akyoto",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/characters/liked": []string{
|
|
|
|
// "/+Akyoto/characters/liked",
|
|
|
|
// },
|
2018-04-19 15:48:15 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/forum/threads": []string{
|
|
|
|
// "/+Akyoto/forum/threads",
|
|
|
|
// },
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/forum/posts": []string{
|
|
|
|
// "/+Akyoto/forum/posts",
|
|
|
|
// },
|
2017-06-23 15:15:48 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/soundtracks/added": []string{
|
|
|
|
// "/+Akyoto/soundtracks/added",
|
|
|
|
// },
|
2018-03-14 10:57:40 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/soundtracks/added/from/:index": []string{
|
|
|
|
// "/+Akyoto/soundtracks/added/from/3",
|
|
|
|
// },
|
2018-03-14 14:58:12 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/soundtracks/liked": []string{
|
|
|
|
// "/+Akyoto/soundtracks/liked",
|
|
|
|
// },
|
2017-06-30 16:12:14 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/soundtracks/liked/from/:index": []string{
|
|
|
|
// "/+Akyoto/soundtracks/liked/from/3",
|
|
|
|
// },
|
2018-03-14 14:58:12 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/quotes/added": []string{
|
|
|
|
// "/+Scott/quotes/added",
|
|
|
|
// },
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/quotes/added/from/:index": []string{
|
|
|
|
// "/+Scott/quotes/added/from/3",
|
|
|
|
// },
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/quotes/liked": []string{
|
|
|
|
// "/+Scott/quotes/liked",
|
|
|
|
// },
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/quotes/liked/from/:index": []string{
|
|
|
|
// "/+Scott/quotes/liked/from/3",
|
|
|
|
// },
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/followers": []string{
|
|
|
|
// "/+Akyoto/followers",
|
|
|
|
// },
|
2017-10-01 05:24:56 +00:00
|
|
|
|
2018-12-07 07:20:10 +00:00
|
|
|
// "/user/:nick/stats": []string{
|
|
|
|
// "/+Akyoto/stats",
|
|
|
|
// },
|
2017-10-01 05:24:56 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/anime/:id": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/+Akyoto/animelist/anime/74y2cFiiR",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-20 12:16:23 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/watching": {
|
2017-07-05 19:23:59 +00:00
|
|
|
"/+Akyoto/animelist/watching",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/watching/from/:index": {
|
2018-11-12 05:24:00 +00:00
|
|
|
"/+Akyoto/animelist/watching/from/1",
|
2018-03-23 03:12:06 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/completed": {
|
2017-07-05 19:23:59 +00:00
|
|
|
"/+Akyoto/animelist/completed",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/completed/from/:index": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/+Akyoto/animelist/completed/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/planned": {
|
2017-07-05 19:23:59 +00:00
|
|
|
"/+Akyoto/animelist/planned",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/planned/from/:index": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/+Akyoto/animelist/planned/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/hold": {
|
2017-07-05 19:23:59 +00:00
|
|
|
"/+Akyoto/animelist/hold",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/hold/from/:index": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/+Akyoto/animelist/hold/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/dropped": {
|
2017-07-05 19:23:59 +00:00
|
|
|
"/+Akyoto/animelist/dropped",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/animelist/dropped/from/:index": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/+Akyoto/animelist/dropped/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/anime/recommended": {
|
2018-12-07 07:20:10 +00:00
|
|
|
"/+Akyoto/anime/recommended",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/user/:nick/anime/sequels": {
|
2018-12-07 07:20:10 +00:00
|
|
|
"/+Akyoto/anime/sequels",
|
2018-02-27 19:38:13 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/users/country/:country": {
|
2018-11-06 11:20:19 +00:00
|
|
|
"/users/country/japan",
|
|
|
|
},
|
|
|
|
|
2017-06-14 20:13:30 +00:00
|
|
|
// Pages
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/anime/74y2cFiiR",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id/characters": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/anime/74y2cFiiR/characters",
|
2017-10-22 15:02:36 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id/episodes": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/anime/74y2cFiiR/episodes",
|
2017-10-22 15:02:36 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id/comments": {
|
2018-11-01 08:17:58 +00:00
|
|
|
"/anime/74y2cFiiR/comments",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id/tracks": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/anime/74y2cFiiR/tracks",
|
2017-10-22 15:02:36 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anime/:id/relations": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/anime/74y2cFiiR/relations",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/thread/:id": {
|
2017-07-10 14:58:34 +00:00
|
|
|
"/thread/HJgS7c2K",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/post/:id": {
|
2017-07-10 14:58:34 +00:00
|
|
|
"/post/B1RzshnK",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/forum/:tag": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/forum/general",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/genre/:name": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/genre/action",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/company/:id": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/company/xCAUr7UkRaz",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/company/:id/history": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/company/xCAUr7UkRaz/history",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/companies/from/:index": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/companies/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/explore/color/:color/anime": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/explore/color/hsl:0.050,0.25,0.5/anime",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/explore/color/:color/anime/from/:index": {
|
2018-07-04 09:43:51 +00:00
|
|
|
"/explore/color/hsl:0.050,0.25,0.5/anime/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/search/:term": {
|
2017-06-21 00:02:30 +00:00
|
|
|
"/search/Dragon Ball",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-21 00:02:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/quote/:id": {
|
2018-02-26 11:48:25 +00:00
|
|
|
"/quote/gUZugd6zR",
|
2018-01-25 14:29:52 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/quote/:id/edit": {
|
2018-02-26 11:48:25 +00:00
|
|
|
"/quote/gUZugd6zR/edit",
|
2018-01-25 14:29:52 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/quote/:id/history": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/quote/gUZugd6zR/history",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/quotes/from/:index": {
|
2018-01-25 14:29:52 +00:00
|
|
|
"/quotes/from/2",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/quotes/best/from/:index": {
|
2018-01-25 14:29:52 +00:00
|
|
|
"/quotes/best/from/2",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtrack/:id": {
|
2017-07-16 05:50:57 +00:00
|
|
|
"/soundtrack/h0ac8sKkg",
|
2017-06-30 16:12:14 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtrack/:id/lyrics": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/soundtrack/vS64GbpzR/lyrics",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtrack/:id/edit": {
|
2017-10-22 15:02:36 +00:00
|
|
|
"/soundtrack/h0ac8sKkg/edit",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtrack/:id/history": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/soundtrack/h0ac8sKkg/history",
|
2018-01-25 14:29:52 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/soundtracks",
|
2018-01-25 14:29:52 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks/from/:index": {
|
2017-10-22 15:02:36 +00:00
|
|
|
"/soundtracks/from/12",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks/best": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/soundtracks/best",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks/best/from/:index": {
|
2018-01-25 14:29:52 +00:00
|
|
|
"/soundtracks/best/from/12",
|
|
|
|
},
|
2018-03-23 03:12:06 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks/tag/:tag": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/soundtracks/tag/moe",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/soundtracks/tag/:tag/from/:index": {
|
2018-03-23 03:12:06 +00:00
|
|
|
"/soundtracks/tag/moe/from/3",
|
|
|
|
},
|
2018-01-25 14:29:52 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/character/:id": {
|
2018-04-11 10:05:02 +00:00
|
|
|
"/character/dfrNQrmmg-",
|
|
|
|
},
|
|
|
|
|
2019-10-26 06:57:47 +00:00
|
|
|
"/episode/:id": {
|
|
|
|
"/episode/oFlqThKWga",
|
|
|
|
},
|
|
|
|
|
2018-04-11 21:11:33 +00:00
|
|
|
// "/kitsu/character/:id": []string{
|
|
|
|
// "/kitsu/character/6556",
|
|
|
|
// },
|
2018-04-11 10:05:02 +00:00
|
|
|
|
2018-04-11 21:11:33 +00:00
|
|
|
// "/mal/character/:id": []string{
|
|
|
|
// "/mal/character/498",
|
|
|
|
// },
|
2017-10-01 05:24:56 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/compare/animelist/:nick-1/:nick-2": {
|
2017-10-22 15:02:36 +00:00
|
|
|
"/compare/animelist/Akyoto/Scott",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/explore/anime/:year/:season/:status/:type": {
|
2018-04-13 16:07:21 +00:00
|
|
|
"/explore/anime/2011/any/finished/tv",
|
2017-11-17 10:00:49 +00:00
|
|
|
},
|
|
|
|
|
2018-04-25 18:23:35 +00:00
|
|
|
// AMV
|
2019-04-23 05:52:55 +00:00
|
|
|
"/amv/:id": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/amv/07scvSWmg",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/amv/:id/edit": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/amv/07scvSWmg/edit",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/amv/:id/history": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/amv/07scvSWmg/history",
|
|
|
|
},
|
|
|
|
|
|
|
|
// AMVs
|
2019-04-23 05:52:55 +00:00
|
|
|
"/amvs/from/:index": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/amvs/from/3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/amvs/best/from/:index": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/amvs/best/from/3",
|
|
|
|
},
|
|
|
|
|
2018-04-06 22:11:29 +00:00
|
|
|
// Redirects
|
2019-04-23 05:52:55 +00:00
|
|
|
"/mal/anime/:id": {
|
2018-04-06 22:11:29 +00:00
|
|
|
"/mal/anime/33352",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/kitsu/anime/:id": {
|
2018-04-06 22:11:29 +00:00
|
|
|
"/kitsu/anime/12230",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/anilist/anime/:id": {
|
2018-04-06 22:11:29 +00:00
|
|
|
"/anilist/anime/21827",
|
|
|
|
},
|
|
|
|
|
2017-06-14 20:13:30 +00:00
|
|
|
// API
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/anime/:id": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/api/anime/74y2cFiiR",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/thread/:id": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/api/thread/HJgS7c2K",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/post/:id": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/api/post/B1RzshnK",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/animelist/:id": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/api/animelist/4J6qpK1ve",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/settings/:id": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/api/settings/4J6qpK1ve",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/user/:id": {
|
2017-06-14 20:13:30 +00:00
|
|
|
"/api/user/4J6qpK1ve",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/googletouser/:id": {
|
2017-06-16 22:33:27 +00:00
|
|
|
"/api/googletouser/106530160120373282283",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-16 22:33:27 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/nicktouser/:id": {
|
2017-06-16 22:33:27 +00:00
|
|
|
"/api/nicktouser/Akyoto",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-16 22:33:27 +00:00
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/soundtrack/:id": {
|
2017-06-30 16:12:14 +00:00
|
|
|
"/api/soundtrack/h0ac8sKkg",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/userfollows/:id": {
|
2017-10-01 05:24:56 +00:00
|
|
|
"/api/userfollows/4J6qpK1ve",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/animecharacters/:id": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/api/animecharacters/74y2cFiiR",
|
2017-10-01 05:24:56 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/animerelations/:id": {
|
2018-04-04 19:35:29 +00:00
|
|
|
"/api/animerelations/74y2cFiiR",
|
2018-03-27 23:59:14 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/amv/:id": {
|
2018-04-25 18:23:35 +00:00
|
|
|
"/api/amv/07scvSWmg",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/character/:id": {
|
2018-04-11 21:10:41 +00:00
|
|
|
"/api/character/dfrNQrmmg-",
|
2017-10-01 05:24:56 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/company/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/company/xCAUr7UkRaz",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/draftindex/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/draftindex/4J6qpK1ve",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/inventory/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/inventory/4J6qpK1ve",
|
2017-10-01 05:24:56 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/shopitem/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/shopitem/pro-account-3",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/notification/:id": {
|
2018-11-15 11:53:24 +00:00
|
|
|
"/api/notification/q6Y6eraig",
|
2018-03-27 23:59:14 +00:00
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/quote/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/quote/GXp675zmR",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/usernotifications/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/usernotifications/4J6qpK1ve",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/api/pushsubscriptions/:id": {
|
2018-03-27 23:59:14 +00:00
|
|
|
"/api/pushsubscriptions/4J6qpK1ve",
|
2017-10-01 05:24:56 +00:00
|
|
|
},
|
|
|
|
|
2017-06-16 22:33:27 +00:00
|
|
|
// Images
|
2019-04-23 05:52:55 +00:00
|
|
|
"/images/*file": {
|
2017-06-18 12:07:38 +00:00
|
|
|
"/images/elements/no-avatar.svg",
|
2017-06-21 18:33:57 +00:00
|
|
|
},
|
2017-06-14 20:13:30 +00:00
|
|
|
|
2017-10-03 02:24:01 +00:00
|
|
|
// Extra tests for higher coverage
|
2019-04-23 05:52:55 +00:00
|
|
|
"/_/+Akyoto": {
|
2017-10-03 02:24:01 +00:00
|
|
|
"/_/+Akyoto",
|
|
|
|
},
|
|
|
|
|
2019-04-23 05:52:55 +00:00
|
|
|
"/_/search/dragon": {
|
2017-10-03 02:24:01 +00:00
|
|
|
"/_/search/dragon",
|
|
|
|
},
|
|
|
|
|
2017-06-30 16:12:14 +00:00
|
|
|
// Disable these tests because they require authorization
|
2017-10-01 05:24:56 +00:00
|
|
|
"/auth/google": nil,
|
|
|
|
"/auth/google/callback": nil,
|
|
|
|
"/auth/facebook": nil,
|
|
|
|
"/auth/facebook/callback": nil,
|
2019-03-29 09:04:18 +00:00
|
|
|
"/auth/twitter": nil,
|
|
|
|
"/auth/twitter/callback": nil,
|
2017-10-02 04:59:29 +00:00
|
|
|
"/dashboard": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/import": nil,
|
|
|
|
"/import/anilist/animelist": nil,
|
|
|
|
"/import/anilist/animelist/finish": nil,
|
|
|
|
"/import/myanimelist/animelist": nil,
|
|
|
|
"/import/myanimelist/animelist/finish": nil,
|
|
|
|
"/import/kitsu/animelist": nil,
|
|
|
|
"/import/kitsu/animelist/finish": nil,
|
2018-03-23 00:43:45 +00:00
|
|
|
"/animelist/watching": nil,
|
|
|
|
"/animelist/completed": nil,
|
|
|
|
"/animelist/planned": nil,
|
|
|
|
"/animelist/hold": nil,
|
|
|
|
"/animelist/dropped": nil,
|
2018-02-27 19:38:13 +00:00
|
|
|
"/notifications": nil,
|
2018-03-01 21:52:01 +00:00
|
|
|
"/user/:nick/notifications": nil,
|
2018-04-03 23:45:47 +00:00
|
|
|
"/user/:nick/edit": nil,
|
2018-04-11 21:10:41 +00:00
|
|
|
"/user/:nick/log": nil,
|
|
|
|
"/user/:nick/log/from/:index": nil,
|
2018-04-13 16:07:21 +00:00
|
|
|
"/editor/soundtracks/file": nil,
|
|
|
|
"/editor/soundtracks/links": nil,
|
2018-04-25 18:03:35 +00:00
|
|
|
"/editor/soundtracks/lyrics/missing": nil,
|
|
|
|
"/editor/soundtracks/lyrics/unaligned": nil,
|
2018-04-13 16:07:21 +00:00
|
|
|
"/editor/soundtracks/tags": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/api/test/notification": nil,
|
|
|
|
"/api/paypal/payment/create": nil,
|
2018-04-10 11:19:23 +00:00
|
|
|
"/api/emailtouser/:id": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/api/userfollows/:id/get/:item": nil,
|
|
|
|
"/api/userfollows/:id/get/:item/:property": nil,
|
|
|
|
"/api/pushsubscriptions/:id/get/:item": nil,
|
|
|
|
"/api/pushsubscriptions/:id/get/:item/:property": nil,
|
2018-02-28 23:06:03 +00:00
|
|
|
"/api/count/notifications/unseen": nil,
|
|
|
|
"/api/mark/notifications/seen": nil,
|
2018-11-06 20:40:03 +00:00
|
|
|
"/api/sse/events": nil,
|
2018-03-23 00:43:45 +00:00
|
|
|
"/editor/kitsu/new/anime": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/paypal/success": nil,
|
|
|
|
"/paypal/cancel": nil,
|
|
|
|
"/anime/:id/edit": nil,
|
2018-04-25 18:23:35 +00:00
|
|
|
"/anime/:id/edit/images": nil,
|
|
|
|
"/anime/:id/edit/characters": nil,
|
|
|
|
"/anime/:id/edit/relations": nil,
|
|
|
|
"/anime/:id/edit/episodes": nil,
|
|
|
|
"/anime/:id/edit/history": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/new/thread": nil,
|
2018-07-04 09:43:51 +00:00
|
|
|
"/thread/:id/edit": nil,
|
|
|
|
"/post/:id/edit": nil,
|
|
|
|
"/company/:id/edit": nil,
|
2017-10-07 21:24:09 +00:00
|
|
|
"/admin/purchases": nil,
|
2018-04-17 23:08:04 +00:00
|
|
|
"/admin/registrations": nil,
|
2018-10-28 01:45:04 +00:00
|
|
|
"/admin/payments": nil,
|
2017-10-06 20:07:12 +00:00
|
|
|
"/editor/anilist": nil,
|
|
|
|
"/editor/shoboi": nil,
|
2017-10-11 10:45:04 +00:00
|
|
|
"/dark-flame-master": nil,
|
2018-11-22 02:51:44 +00:00
|
|
|
"/groups/joined": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/user": nil,
|
|
|
|
"/settings": nil,
|
2017-11-05 07:16:20 +00:00
|
|
|
"/settings/accounts": nil,
|
|
|
|
"/settings/notifications": nil,
|
2018-11-06 09:28:50 +00:00
|
|
|
"/settings/info": nil,
|
|
|
|
"/settings/style": nil,
|
2018-11-01 05:45:16 +00:00
|
|
|
"/settings/extras": nil,
|
2017-10-04 06:12:12 +00:00
|
|
|
"/shop": nil,
|
2017-10-06 10:44:55 +00:00
|
|
|
"/shop/history": nil,
|
2018-03-04 15:53:42 +00:00
|
|
|
"/support": nil,
|
2017-10-04 06:12:12 +00:00
|
|
|
"/charge": nil,
|
2018-03-09 18:53:21 +00:00
|
|
|
"/log": nil,
|
2018-07-04 09:43:51 +00:00
|
|
|
"/log/from/:index": nil,
|
2017-10-04 06:12:12 +00:00
|
|
|
"/inventory": nil,
|
2017-10-01 05:24:56 +00:00
|
|
|
"/extension/embed": nil,
|
2018-11-15 03:42:10 +00:00
|
|
|
"/welcome": nil,
|
2017-06-21 18:33:57 +00:00
|
|
|
}
|
2018-03-27 23:32:49 +00:00
|
|
|
|
|
|
|
// All returns which specific routes to test for a given generic route.
|
|
|
|
func All() map[string][]string {
|
|
|
|
return routeTests
|
|
|
|
}
|