Skip to content
Permalink
Browse files

Remove goapp folder

  • Loading branch information...
mjibson committed Oct 8, 2013
1 parent 45639c8 commit 6ea7f26f37dc1288f6bb91d20280b07f21d8e5eb
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -38,7 +38,6 @@ var templates *template.Template

func init() {
var err error

if templates, err = template.New("").Funcs(funcs).
ParseFiles(
"templates/base.html",
@@ -50,7 +49,6 @@ func init() {
); err != nil {
log.Fatal(err)
}

router.Handle("/", mpg.NewHandler(Main)).Name("main")
router.Handle("/login/google", mpg.NewHandler(LoginGoogle)).Name("login-google")
router.Handle("/logout", mpg.NewHandler(Logout)).Name("logout")
@@ -91,6 +89,16 @@ func init() {

http.Handle("/", router)

if len(PUBSUBHUBBUB_HOST) > 0 {
u := url.URL{
Scheme: "http",
Host: PUBSUBHUBBUB_HOST,
Path: routeUrl("add-subscription"),
RawQuery: url.Values{"url": {"{url}"}}.Encode(),
}
subURL = u.String()
}

miniprofiler.ToggleShortcut = "Alt+C"
miniprofiler.Position = "bottomleft"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -40,7 +40,8 @@ import (
"appengine/user"
mpg "github.com/MiniProfiler/go/miniprofiler_gae"
"github.com/mjibson/goon"
"goapp/sanitizer"

"sanitizer"
)

func LoginGoogle(c mpg.Context, w http.ResponseWriter, r *http.Request) {
@@ -43,10 +43,11 @@ import (
_ "code.google.com/p/go-charset/data"
mpg "github.com/MiniProfiler/go/miniprofiler_gae"
"github.com/mjibson/goon"
"goapp/atom"
"goapp/rdf"
"goapp/rss"
"goapp/sanitizer"

"atom"
"rdf"
"rss"
"sanitizer"
)

func serveError(w http.ResponseWriter, err error) {
@@ -111,15 +112,6 @@ func init() {
JqueryUI = fmt.Sprintf("/static/js/jquery-ui-%v.min.js", jqueryui_ver)
Underscore = fmt.Sprintf("/static/js/underscore-%v.min.js", underscore_ver)
}
if len(PUBSUBHUBBUB_HOST) > 0 {
u := url.URL{
Scheme: "http",
Host: PUBSUBHUBBUB_HOST,
Path: routeUrl("add-subscription"),
RawQuery: url.Values{"url": {"{url}"}}.Encode(),
}
subURL = u.String()
}
}

func includes(c mpg.Context, w http.ResponseWriter, r *http.Request) *Includes {

0 comments on commit 6ea7f26

Please sign in to comment.
You can’t perform that action at this time.