ch11.1
This commit is contained in:
@@ -117,3 +117,23 @@ func (app *application) snippetCreatePost(w http.ResponseWriter, r *http.Request
|
||||
|
||||
http.Redirect(w, r, fmt.Sprintf("/snippet/view/%d", id), http.StatusSeeOther)
|
||||
}
|
||||
|
||||
func (app *application) userSignupPost(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Create a new user...")
|
||||
}
|
||||
|
||||
func (app *application) userLoginPost(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Login the user...")
|
||||
}
|
||||
|
||||
func (app *application) userLogoutPost(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Logout the user...")
|
||||
}
|
||||
|
||||
func (app *application) userSignup(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Display a HTML for signing up a new user...")
|
||||
}
|
||||
|
||||
func (app *application) userLogin(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "Display a HTML for log in a user...")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user