eidolon/config/routes
2016-12-19 03:18:06 +01:00

80 lines
3.1 KiB
Text
Executable file

-- eidolon -- A simple gallery in Haskell and Yesod
-- Copyright (C) 2015 Amedeo Molnár
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Affero General Public License for more details.
--
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
/static StaticR Static appStatic
/favicon.ico FaviconR GET
/robots.txt RobotsR GET
/ HomeR GET
/page/#Int PageR GET
/signup SignupR GET POST
/login LoginR GET POST
/logout LogoutR GET
/activate/#T.Text ActivateR GET POST
/profile/#UserId ProfileR GET
/user/#T.Text UserR GET
/user/#T.Text/album/#T.Text BeautyAlbumR GET
/upload UploadR GET POST
/newalbum NewAlbumR GET POST
/album/#AlbumId AlbumR GET
/medium/#MediumId MediumR GET POST
/album/#AlbumId/upload DirectUploadR GET POST
/album/#AlbumId/settings AlbumSettingsR GET POST
/album/#AlbumId/delete AlbumDeleteR GET POST
/medium/#MediumId/settings MediumSettingsR GET POST
/medium/#MediumId/delete MediumDeleteR GET POST
/medium/#MediumId/move MediumMoveR GET POST
/comment/#CommentId/reply CommentReplyR GET POST
/comment/#CommentId/delcom CommentDeleteR GET POST
/reactivate ReactivateR GET POST
/profile/#UserId/settings ProfileSettingsR GET POST
/profile/#UserId/delete ProfileDeleteR GET POST
/admin AdminR GET
/admin/profile AdminProfilesR GET
/admin/profile/#UserId AdminProfileSettingsR GET POST
/admin/profile/#UserId/albums AdminUserAlbumsR GET
/admin/profile/#UserId/media AdminUserMediaR GET
/admin/profile/#UserId/delete AdminProfileDeleteR GET
/admin/album AdminAlbumsR GET
/admin/album/#AlbumId AdminAlbumSettingsR GET POST
/admin/album/#AlbumId/media AdminAlbumMediaR GET
/admin/album/#AlbumId/delete AdminAlbumDeleteR GET
/admin/medium AdminMediaR GET
/admin/medium/#MediumId AdminMediumSettingsR GET POST
/admin/medium/#MediumId/delete AdminMediumDeleteR GET
/admin/comment AdminCommentR GET
/admin/comment/#CommentId AdminCommentDeleteR GET
-- /admin/repop-search AdminSearchReloadR GET
/tag/#T.Text TagR GET
/feed/root/atom.xml RootFeedAtomR GET
/feed/root/rss.xml RootFeedRssR GET
/feed/album/#AlbumId/atom.xml AlbumFeedAtomR GET
/feed/album/#AlbumId/rss.xml AlbumFeedRssR GET
/feed/medium/#MediumId/atom.xml CommentFeedAtomR GET
/feed/medium/#MediumId/rss.xml CommentFeedRssR GET
/feed/user/#UserId/atom.xml UserFeedAtomR GET
/feed/user/#UserId/rss.xml UserFeedRssR GET
!/feed/user/#T.Text/atom.xml NameFeedAtomR GET
!/feed/user/#T.Text/rss.xml NameFeedRssR GET
-- /search SearchR GET
/about AboutR GET
/about/threat ThreatR GET