Added code to broadcast api (#1)
Reviewed-on: phoenix/textsender-auth#1 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
import "net/http"
|
||||||
|
import "log"
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
|
// Port that the application runs on
|
||||||
|
const Port = 9080
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("textsender-auth")
|
fmt.Println("textsender-auth")
|
||||||
|
|
||||||
|
portListen := fmt.Sprintf(":%d", Port)
|
||||||
|
|
||||||
|
log.Println("Starting server port:", Port)
|
||||||
|
log.Fatal(http.ListenAndServe(portListen, nil))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user