diff --git a/src/Application.hs b/src/Application.hs index 8017d6f07..76d4c3480 100644 --- a/src/Application.hs +++ b/src/Application.hs @@ -40,7 +40,6 @@ import System.Log.FastLogger (defaultBufSize, newStdoutLoggerSet, -- Don't forget to add new modules to your cabal file! import Handler.Common import Handler.Home -import Handler.Comment import Handler.Profile -- This line actually creates our YesodDispatch instance. It is the second half diff --git a/src/Foundation.hs b/src/Foundation.hs index 664a5e1b0..7f1329238 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -142,7 +142,6 @@ instance Yesod App where -- Routes not requiring authentication. isAuthorized (AuthR _) _ = return Authorized - isAuthorized CommentR _ = return Authorized isAuthorized HomeR _ = return Authorized isAuthorized FaviconR _ = return Authorized isAuthorized RobotsR _ = return Authorized diff --git a/templates/homepage.julius b/templates/homepage.julius index 865882ec9..c04a285e6 100644 --- a/templates/homepage.julius +++ b/templates/homepage.julius @@ -13,7 +13,7 @@ $(function() { // Make an AJAX request to the server to create a new comment $.ajax({ - url: '@{CommentR}', + url: 'null.invalid', type: 'POST', contentType: "application/json", data: JSON.stringify({