Categorygithub.com/Michael-Wilburn/snippetbox
module
0.0.0-20241221195847-da83fb0a6c4d
Repository: https://github.com/michael-wilburn/snippetbox.git
Documentation: pkg.go.dev

# README

Snippetbox

Web application called Snippetbox, which lets people paste and share snippets of text — a bit like Pastebin or GitHub’s Gists.

MethodURL PatternHandlerAction
GET/homeDisplay the home page
GET/snippet/view/:idsnippetViewDisplay a specific snippet
GET/snippet/createsnippetCreateDispla a HTML form for crating a new snippet
POST/snippet/createsnippetCreatePostCreate a new snippet
GET/user/signupuserSignupDisplay a HTML form for signing up a new user
POST/user/signupPostuserSignupPostCreate a new user
GET/user/loginuserLoginDisplay a HTML form for logging in a user
POST/user/loginuserLoginPostAuthenticate and login the user
POST/user/logoutuserLogoutPostLogout the user
GET/static/*filepathhttp.FileServerServe a specific static file

Test the endpoint throw the terminal.

  • Using the double arrow >> will append to an existing file, instead of truncating it when starting the application. $ go run ./cmd/web >>/tmp/info.log 2>>/tmp/error.log

# Packages

No description provided by the author
No description provided by the author