2017-06-14 20:13:30 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
// User
|
|
|
|
app.Test("/user/:nick", []string{
|
|
|
|
"/+Akyoto",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/user/:nick/threads", []string{
|
|
|
|
"/+Akyoto/threads",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/user/:nick/avatar", []string{
|
|
|
|
"/+Akyoto/avatar",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/user/:nick/avatar/small", []string{
|
|
|
|
"/+Akyoto/avatar/small",
|
|
|
|
})
|
|
|
|
|
|
|
|
// Pages
|
|
|
|
app.Test("/anime/:id", []string{
|
|
|
|
"/anime/1",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/threads/:id", []string{
|
|
|
|
"/threads/HJgS7c2K",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/posts/:id", []string{
|
|
|
|
"/posts/B1RzshnK",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/forum/:tag", []string{
|
|
|
|
"/forum/general",
|
|
|
|
})
|
|
|
|
|
|
|
|
// API
|
|
|
|
app.Test("/api/anime/:id", []string{
|
|
|
|
"/api/anime/1",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/thread/:id", []string{
|
|
|
|
"/api/thread/HJgS7c2K",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/post/:id", []string{
|
|
|
|
"/api/post/B1RzshnK",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/animelist/:id", []string{
|
|
|
|
"/api/animelist/4J6qpK1ve",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/settings/:id", []string{
|
|
|
|
"/api/settings/4J6qpK1ve",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/user/:id", []string{
|
|
|
|
"/api/user/4J6qpK1ve",
|
|
|
|
})
|
|
|
|
|
2017-06-16 22:33:27 +00:00
|
|
|
app.Test("/api/emailtouser/:id", []string{
|
|
|
|
"/api/emailtouser/e.urbach@gmail.com",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/googletouser/:id", []string{
|
|
|
|
"/api/googletouser/106530160120373282283",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/api/nicktouser/:id", []string{
|
|
|
|
"/api/nicktouser/Akyoto",
|
|
|
|
})
|
|
|
|
|
|
|
|
// Images
|
|
|
|
app.Test("/icons/:file", []string{
|
|
|
|
"/icons/inbox",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/images/login/:file", []string{
|
|
|
|
"/images/login/google",
|
|
|
|
})
|
|
|
|
|
2017-06-14 20:13:30 +00:00
|
|
|
app.Test("/images/cover/:file", []string{
|
|
|
|
"/images/cover/default",
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Test("/images/elements/:file", []string{
|
2017-06-18 12:07:38 +00:00
|
|
|
"/images/elements/no-avatar.svg",
|
2017-06-14 20:13:30 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
// Disable
|
|
|
|
app.Test("/auth/google", nil)
|
|
|
|
app.Test("/auth/google/callback", nil)
|
|
|
|
}
|