mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
25 lines
426 B
Go
25 lines
426 B
Go
/* webserver.go
|
|
*
|
|
* This is the webserver handler for Pogo, and handles
|
|
* all incoming connections, including authentication.
|
|
*/
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/gmemstr/nas/router"
|
|
)
|
|
|
|
// Main function that defines routes
|
|
func main() {
|
|
// Define routes
|
|
// We're live
|
|
r := router.Init()
|
|
fmt.Println("Your NAS instance is live on port :3000")
|
|
log.Fatal(http.ListenAndServe(":3000", r))
|
|
}
|