first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:43:40 +03:00
commit f34e54c5a5
100 changed files with 27342 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package admin
import (
view "gobeyhan/views/admin"
"github.com/gin-gonic/gin"
)
type Handler struct{}
func NewHandler() *Handler {
return &Handler{}
}
func (h *Handler) LoginPage(c *gin.Context) {
view.Login().Render(c.Request.Context(), c.Writer)
}
func (h *Handler) LoginPost(c *gin.Context) {
// TODO: Implement actual login logic
c.Redirect(303, "/admin/dashboard")
}
func (h *Handler) Dashboard(c *gin.Context) {
view.Dashboard().Render(c.Request.Context(), c.Writer)
}