site-libsoc/Server/routes.jl

29 lines
1.0 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-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-06 18:04:03 +07:00
route("/:locale/groups/*", BasicController.groups, named = :groups)
2023-06-24 04:39:41 +07:00
route("/:locale/groups-add/*", BasicController.groups_add, named = :groups_add)
route("/:locale/groups-add-post/*", BasicController.groups_add_post, method = POST, named = :groups_add_post)
2023-07-06 18:04:03 +07:00
route("/:locale/cooperatives/*", BasicController.cooperatives, named = :cooperatives)
2023-06-24 04:39:41 +07:00
2023-07-12 05:42:33 +07:00
route("/:locale/communes/*", BasicController.communes, named = :communes)
2023-07-13 01:25:28 +07:00
route("/:locale/parties/*", BasicController.parties, named = :parties)
2023-06-24 04:39:41 +07:00
2023-07-06 18:04:03 +07:00
route("/:locale/partners/*", BasicController.partners, named = :partners)
2023-07-04 23:21:15 +07:00
2023-07-06 18:04:03 +07:00
route("/:locale/political-compass/*", BasicController.political_compass, named = :political_compass)
2023-06-26 00:39:06 +07:00
2023-07-06 18:04:03 +07:00
route("/:locale/*", BasicController.landing, named = :landing)