mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
Add files via upload
This commit is contained in:
@@ -54,11 +54,11 @@ func main() {
|
||||
}).Methods("GET", "OPTIONS")
|
||||
|
||||
// Authentication routes
|
||||
r.HandleFunc("/api/login", loginHandler).Methods("POST", "OPTIONS")
|
||||
r.HandleFunc("/api/login", LoginHandler).Methods("POST", "OPTIONS")
|
||||
|
||||
// Protected API routes
|
||||
api := r.PathPrefix("/api").Subrouter()
|
||||
api.Use(authMiddleware)
|
||||
api.Use(AuthMiddleware)
|
||||
api.HandleFunc("/submit", handleSubmit).Methods("POST")
|
||||
|
||||
// Admin routes
|
||||
|
||||
Reference in New Issue
Block a user