@@ -121,8 +121,8 @@ OwJlNCASPZRH/JmF8tX0hoHuAQ==
121
121
)
122
122
123
123
func main () {
124
- rootURLstr := flag .String ("url" , "https ://962766ce.ngrok.io " , "The base URL of this service" )
125
- idpMetadataURLstr := flag .String ("idp" , "https ://516becc2.ngrok.io /metadata" , "The metadata URL for the IDP" )
124
+ rootURLstr := flag .String ("url" , "http ://localhost:8090 " , "The base URL of this service" )
125
+ idpMetadataURLstr := flag .String ("idp" , "http ://localhost:8080 /metadata" , "The metadata URL for the IDP" )
126
126
flag .Parse ()
127
127
128
128
keyPair , err := tls .X509KeyPair (cert , key )
@@ -175,11 +175,11 @@ func main() {
175
175
}
176
176
177
177
mux := http .NewServeMux ()
178
- mux .Handle ("GET /saml/" , samlSP )
179
- mux .HandleFunc ("GET /{link}" , ServeLink )
178
+ mux .Handle ("/saml/" , samlSP )
179
+ mux .HandleFunc ("GET /links/ {link}" , ServeLink )
180
180
mux .Handle ("GET /whoami" , samlSP .RequireAccount (http .HandlerFunc (ServeWhoami )))
181
- mux .Handle ("POST /" , samlSP .RequireAccount (http .HandlerFunc (CreateLink )))
182
- mux .Handle ("GET /" , samlSP .RequireAccount (http .HandlerFunc (ListLinks )))
181
+ mux .Handle ("POST /links " , samlSP .RequireAccount (http .HandlerFunc (CreateLink )))
182
+ mux .Handle ("GET /links " , samlSP .RequireAccount (http .HandlerFunc (ListLinks )))
183
183
184
- http .ListenAndServe (":8080 " , mux )
184
+ http .ListenAndServe (":8090 " , mux )
185
185
}
0 commit comments