Drop Handler.Comment
This commit is contained in:
parent
bb2dbc3b79
commit
b058fd84ba
@ -40,7 +40,6 @@ import System.Log.FastLogger (defaultBufSize, newStdoutLoggerSet,
|
|||||||
-- Don't forget to add new modules to your cabal file!
|
-- Don't forget to add new modules to your cabal file!
|
||||||
import Handler.Common
|
import Handler.Common
|
||||||
import Handler.Home
|
import Handler.Home
|
||||||
import Handler.Comment
|
|
||||||
import Handler.Profile
|
import Handler.Profile
|
||||||
|
|
||||||
-- This line actually creates our YesodDispatch instance. It is the second half
|
-- This line actually creates our YesodDispatch instance. It is the second half
|
||||||
|
|||||||
@ -142,7 +142,6 @@ instance Yesod App where
|
|||||||
|
|
||||||
-- Routes not requiring authentication.
|
-- Routes not requiring authentication.
|
||||||
isAuthorized (AuthR _) _ = return Authorized
|
isAuthorized (AuthR _) _ = return Authorized
|
||||||
isAuthorized CommentR _ = return Authorized
|
|
||||||
isAuthorized HomeR _ = return Authorized
|
isAuthorized HomeR _ = return Authorized
|
||||||
isAuthorized FaviconR _ = return Authorized
|
isAuthorized FaviconR _ = return Authorized
|
||||||
isAuthorized RobotsR _ = return Authorized
|
isAuthorized RobotsR _ = return Authorized
|
||||||
|
|||||||
@ -13,7 +13,7 @@ $(function() {
|
|||||||
|
|
||||||
// Make an AJAX request to the server to create a new comment
|
// Make an AJAX request to the server to create a new comment
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '@{CommentR}',
|
url: 'null.invalid',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user