Drop Handler.Comment

This commit is contained in:
Gregor Kleen 2017-10-04 13:59:58 +02:00
parent bb2dbc3b79
commit b058fd84ba
3 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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({