FEAT: Load Catagories from backend
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s

This commit is contained in:
FahdShalhoub
2026-08-16 22:42:17 +03:00
parent 724351c271
commit 27fd28d426
5 changed files with 218 additions and 106 deletions
+8 -1
View File
@@ -21,7 +21,14 @@ const (
)
func NewVideo(w http.ResponseWriter, r *http.Request) {
views.VideoUpload().Render(r.Context(), w)
categories, err := services.DB.ListCategories(r.Context())
if err != nil {
log.Printf("Something Went Wrong Loading Categories: %s", err)
http.Error(w, "Something Went Wrong Loading Categories", http.StatusInternalServerError)
return
}
views.VideoUpload(categories).Render(r.Context(), w)
}
type presignRequest struct {