FEAT: Load Catagories from backend
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m11s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user