This commit is contained in:
@@ -72,6 +72,11 @@ func main() {
|
||||
Store: st,
|
||||
Link: baseURL,
|
||||
}
|
||||
importH := &handler.ImportHandler{
|
||||
Store: st,
|
||||
Tpl: tpl,
|
||||
UploadDir: uploadDir,
|
||||
}
|
||||
|
||||
// Auth routes.
|
||||
http.HandleFunc("/signup", authMid.RedirectIfAuthed(authH.ServeSignup))
|
||||
@@ -84,6 +89,7 @@ func main() {
|
||||
http.HandleFunc("/episodes/edit", authMid.RequireAuth(epH.ServeEdit))
|
||||
http.HandleFunc("/episodes/delete", authMid.RequireAuth(epH.ServeDelete))
|
||||
http.HandleFunc("/settings", authMid.RequireAuth(setH.ServeSettings))
|
||||
http.HandleFunc("/import", authMid.RequireAuth(importH.ServeImport))
|
||||
|
||||
// Public RSS: /rss/my-slug or /rss?slug=my-slug or /rss?user=N (legacy)
|
||||
http.HandleFunc("/rss", rssH.ServeRSS)
|
||||
|
||||
Reference in New Issue
Block a user