Added more route tests

This commit is contained in:
Eduard Urbach 2017-10-22 17:02:36 +02:00
parent 43fb54ac49
commit 0d09c488fc

View File

@ -59,6 +59,18 @@ var routeTests = map[string][]string{
"/anime/1", "/anime/1",
}, },
"/anime/:id/characters": []string{
"/anime/1/characters",
},
"/anime/:id/episodes": []string{
"/anime/1/episodes",
},
"/anime/:id/tracks": []string{
"/anime/1/tracks",
},
"/thread/:id": []string{ "/thread/:id": []string{
"/thread/HJgS7c2K", "/thread/HJgS7c2K",
}, },
@ -79,10 +91,22 @@ var routeTests = map[string][]string{
"/soundtrack/h0ac8sKkg", "/soundtrack/h0ac8sKkg",
}, },
"/soundtrack/:id/edit": []string{
"/soundtrack/h0ac8sKkg/edit",
},
"/soundtracks/from/:index": []string{
"/soundtracks/from/12",
},
"/character/:id": []string{ "/character/:id": []string{
"/character/6556", "/character/6556",
}, },
"/compare/animelist/:nick-1/:nick-2": []string{
"/compare/animelist/Akyoto/Scott",
},
// API // API
"/api/anime/:id": []string{ "/api/anime/:id": []string{
"/api/anime/1", "/api/anime/1",