Example of how to extend the API
This commit is contained in:
parent
56693350be
commit
70ae359856
2 changed files with 38 additions and 3 deletions
|
@ -35,6 +35,7 @@ func main() {
|
|||
|
||||
// Register our handlers
|
||||
server.Post("/api/register", gs.Register)
|
||||
server.Delete("/api/userdelete", gs.UserDelete) // Perhaps just use POST to avoid headaches
|
||||
|
||||
// Register handlers for example button count
|
||||
server.Get("/api/button", gs.GetButtonCount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue