mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-06 21:22:36 +00:00
chore: retire unused service
This commit is contained in:
@ -17,7 +17,6 @@ import (
|
||||
"github.com/yourselfhosted/slash/internal/util"
|
||||
storepb "github.com/yourselfhosted/slash/proto/gen/store"
|
||||
"github.com/yourselfhosted/slash/server/common"
|
||||
"github.com/yourselfhosted/slash/server/metric"
|
||||
"github.com/yourselfhosted/slash/server/profile"
|
||||
"github.com/yourselfhosted/slash/store"
|
||||
)
|
||||
@ -96,7 +95,6 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
|
||||
if err := s.createShortcutViewActivity(ctx, c.Request(), shortcut); err != nil {
|
||||
slog.Warn("failed to create shortcut view activity", slog.String("error", err.Error()))
|
||||
}
|
||||
metric.Enqueue("shortcut view")
|
||||
|
||||
// Inject shortcut metadata into `index.html`.
|
||||
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateShortcutMetadata(shortcut).String())
|
||||
@ -114,7 +112,6 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
|
||||
return c.HTML(http.StatusOK, rawIndexHTML)
|
||||
}
|
||||
|
||||
metric.Enqueue("collection view")
|
||||
// Inject collection metadata into `index.html`.
|
||||
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateCollectionMetadata(collection).String())
|
||||
return c.HTML(http.StatusOK, indexHTML)
|
||||
|
Reference in New Issue
Block a user