This commit is contained in:
parent
9990a205d8
commit
671d18d2ba
4 changed files with 51 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
// Package webdebug provides a http server for local debugging.
|
||||
// The server is explicitly for localhost only as it offers
|
||||
// a lot more control and access than the public one.
|
||||
// Additionally, there is no guarantee for functional authentication
|
||||
// and authorisation of requests.
|
||||
// Using it can be considered a security risk.
|
||||
//
|
||||
// There is no guarantee for API stability. It might change drastically
|
||||
// across versions or even commits and doesn't need announcements
|
||||
package webdebug
|
||||
|
||||
import (
|
||||
|
@ -16,6 +25,8 @@ func New() *Server {
|
|||
handler.HandleFunc("GET /non-deleted", getNonDeletedUsers)
|
||||
handler.HandleFunc("POST /local-user", createLocalUser)
|
||||
handler.HandleFunc("GET /delete", deleteUser)
|
||||
handler.HandleFunc("POST /post-as", postAs)
|
||||
handler.HandleFunc("GET /notes-for", notesFrom)
|
||||
web := http.Server{
|
||||
Addr: DebugAddr,
|
||||
Handler: handler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue