|
|
@ -62,9 +62,13 @@ func main() {
|
|
|
|
case "/oauth2/callback":
|
|
|
|
case "/oauth2/callback":
|
|
|
|
filepath = "/static/oauth2/callback.html"
|
|
|
|
filepath = "/static/oauth2/callback.html"
|
|
|
|
case "/app", "/app/":
|
|
|
|
case "/app", "/app/":
|
|
|
|
filepath = "/dist/"
|
|
|
|
filepath = "/dist/index.html"
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
switch {
|
|
|
|
switch {
|
|
|
|
|
|
|
|
case strings.HasPrefix(urlStackeditPath, "/static/css/static/fonts/"):
|
|
|
|
|
|
|
|
filepath = "/dist/" + strings.TrimPrefix(urlStackeditPath, "/static/css/")
|
|
|
|
|
|
|
|
case strings.HasPrefix(urlStackeditPath, "/app/static/css/static/fonts/"):
|
|
|
|
|
|
|
|
filepath = "/dist/" + strings.TrimPrefix(urlStackeditPath, "/app/static/css/")
|
|
|
|
case strings.HasPrefix(urlStackeditPath, "/app/"):
|
|
|
|
case strings.HasPrefix(urlStackeditPath, "/app/"):
|
|
|
|
filepath = "/dist/" + strings.TrimPrefix(urlStackeditPath, "/app/")
|
|
|
|
filepath = "/dist/" + strings.TrimPrefix(urlStackeditPath, "/app/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|