Init
This commit is contained in:
commit
d0187f94d7
23 changed files with 2489 additions and 0 deletions
15
main.go
Normal file
15
main.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", indexHandler)
|
||||
http.HandleFunc("/search", searchHandler)
|
||||
http.HandleFunc("/install", installHandler) // for AMO add-on installs
|
||||
|
||||
log.Println("Starting server on http://localhost:8080")
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue