rid me
This commit is contained in:
parent
e48aef159f
commit
0b62beb4b7
3 changed files with 25 additions and 3 deletions
14
test/test.go
14
test/test.go
|
|
@ -9,7 +9,19 @@ import (
|
|||
|
||||
func main() {
|
||||
err := pas.StartServer(42069, func(request Constants.Request, respond func(Constants.Response)) {
|
||||
respond(Constants.Response{OperationSuccessClassification: Constants.OK, ResponseHeader: map[string]string{}, Body: "say gex"})
|
||||
if request.Intent.Path == "/" {
|
||||
respond(Constants.Response{
|
||||
OperationSuccessClassification: Constants.OK,
|
||||
ResponseHeader: map[string]string{},
|
||||
Body: "first fucking shitternet page lets fucki ng go",
|
||||
})
|
||||
} else {
|
||||
respond(Constants.Response{
|
||||
OperationSuccessClassification: Constants.NOTFOUND,
|
||||
ResponseHeader: map[string]string{},
|
||||
Body: "",
|
||||
})
|
||||
}
|
||||
}, nil)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue