File Uploading feature by tfasano1

This commit is contained in:
tfasano1
2023-05-04 08:26:44 -05:00
committed by max
parent 9b231a73d6
commit d0da1a9114
8 changed files with 96 additions and 2 deletions

View File

@ -30,4 +30,7 @@ func GetRoutes(app *app.App) {
http.HandleFunc("/login", getController.ShowLogin)
http.HandleFunc("/register", getController.ShowRegister)
http.HandleFunc("/logout", getController.Logout)
// Files
http.HandleFunc("/uploads", getController.ShowFile)
}

View File

@ -16,4 +16,5 @@ func PostRoutes(app *app.App) {
// User authentication
http.HandleFunc("/register-handle", postController.Register)
http.HandleFunc("/login-handle", postController.Login)
http.HandleFunc("/upload-handle", postController.FileUpload)
}