File Uploading feature by tfasano1
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user