site-libsoc/Server/routes.jl

54 lines
2.2 KiB
Julia
Raw Normal View History

2023-06-15 01:41:54 +07:00
using Genie.Router, Genie.Requests, Genie.Renderer.Json, JSON3
using Server.BasicController
#---Basic-----------------------------------------------------------
2023-07-28 21:49:29 +07:00
route("/:locale/*", BasicController.landing, named = :landing)
2023-07-06 18:04:03 +07:00
route("/:locale/manifesto/*", BasicController.manifesto, named = :manifest)
2023-06-24 04:39:41 +07:00
2023-07-06 18:04:03 +07:00
route("/:locale/join-us/*", BasicController.join_us, named = :join_us)
2023-06-24 04:39:41 +07:00
2023-07-28 21:49:29 +07:00
route("/:locale/political-compass/*", BasicController.political_compass, named = :political_compass)
2023-06-24 04:39:41 +07:00
2023-07-28 21:49:29 +07:00
#---Groups----------------------------------------------------------
2023-07-28 21:49:29 +07:00
route("/:locale/groups/*", GroupsController.groups, named = :groups)
2023-07-28 21:49:29 +07:00
route("/:locale/groups-add/*", GroupsController.groups_add, named = :groups_add)
2023-06-24 04:39:41 +07:00
2023-07-28 21:49:29 +07:00
route("/:locale/groups-add-post/*", GroupsController.groups_add_post, method = POST, named = :groups_add_post)
2023-07-13 01:25:28 +07:00
2023-07-28 21:49:29 +07:00
#---Coops----------------------------------------------------------
2023-06-24 04:39:41 +07:00
2023-07-28 21:49:29 +07:00
route("/:locale/cooperatives/*", CooperativesController.cooperatives, named = :cooperatives)
2023-07-04 23:21:15 +07:00
2023-07-28 21:49:29 +07:00
route("/:locale/cooperatives-add/*", CooperativesController.cooperatives_add, named = :cooperatives_add)
2023-06-26 00:39:06 +07:00
2023-07-28 21:49:29 +07:00
route("/:locale/cooperatives-add-post/*", CooperativesController.cooperatives_add_post, method = POST, named = :cooperatives_add_post)
#---Communes----------------------------------------------------------
route("/:locale/communes/*", CommunesController.communes, named = :communes)
route("/:locale/communes-add/*", CommunesController.communes_add, named = :communes_add)
route("/:locale/communes-add-post/*", CommunesController.communes_add_post, method = POST, named = :communes_add_post)
#---Parties----------------------------------------------------------
route("/:locale/parties/*", PartiesController.parties, named = :parties)
route("/:locale/parties-add/*", PartiesController.parties_add, named = :parties_add)
route("/:locale/parties-add-post/*", PartiesController.parties_add_post, method = POST, named = :parties_add_post)
#---Partners---------------------------------------------------------
route("/:locale/partners/*", PartnersController.partners, named = :partners)
route("/:locale/partners-add/*", PartnersController.partners_add, named = :partners_add)
route("/:locale/partners-add-post/*", PartnersController.partners_add_post, method = POST, named = :partners_add_post)