-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure Modules For Easier Route Customization
- Loading branch information
Showing
4 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
16 changes: 1 addition & 15 deletions
16
IHP/SEO/Sitemap/Controller.hs → IHP/SEO/Sitemap/ControllerFunctions.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module IHP.SEO.Sitemap.Routes where | ||
|
||
import IHP.Prelude | ||
import IHP.RouterPrelude | ||
import IHP.SEO.Sitemap.Types | ||
|
||
instance HasPath SitemapController where | ||
pathTo SitemapAction = "/sitemap.xml" | ||
|
||
instance CanRoute SitemapController where | ||
parseRoute' = do | ||
string "/sitemap.xml" | ||
endOfInput | ||
pure SitemapAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters