Remove user authentication and switch to simple admin password check (It wont have more than one admin user so no need for registeration (I LOVE .Net/C# btw))
This commit is contained in:
@@ -19,7 +19,6 @@ func SetupRouter(appContext *internal.AppContext) *gin.Engine {
|
||||
admin := r.Group("/admin")
|
||||
|
||||
admin.GET("/", adminDashboardHandler.AdminHomePage)
|
||||
admin.POST("/register", adminDashboardHandler.Register)
|
||||
admin.POST("/login", adminDashboardHandler.Login)
|
||||
admin.POST("/approve", adminDashboardHandler.ApproveMedia)
|
||||
admin.POST("/reject", adminDashboardHandler.RejectMedia)
|
||||
|
||||
Reference in New Issue
Block a user