feat: add sb front matter

This commit is contained in:
Krispire Admin
2026-06-14 14:49:14 +05:30
parent 025c83eec5
commit 4946ce1062
2 changed files with 37 additions and 11 deletions
+4 -1
View File
@@ -411,10 +411,13 @@ func (s *Server) setupRouter() {
// --- Verse books with divisions ---
// SB — canto divisions
// SB — canto divisions (plus prose front-matter segments;
// the static /chapters routes take precedence over /{division}).
r.Route("/sb", func(r chi.Router) {
r.Use(injectBookCode("sb"))
r.Get("/", s.bookH.GetBook)
r.Get("/chapters", s.bookH.ListProseChapters)
r.Get("/chapters/{slug}", s.bookH.GetProseChapter)
r.Get("/{division}", s.bookH.GetDivisionInfo)
r.Get("/{division}/{chapter}", s.bookH.GetDivisionChapterVerseIndex)
r.Get("/{division}/{chapter}/verses", s.bookH.GetDivisionChapterVerses)