site-libsoc/Server/routes.jl

28 lines
994 B
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-03 16:55:46 +07:00
route("/:locale/manifesto", BasicController.manifesto, named = :manifest)
route("/manifesto", BasicController.manifesto)
2023-06-24 04:39:41 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale/join-us", BasicController.join_us, named = :join_us)
route("/join-us", BasicController.join_us)
2023-06-24 04:39:41 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale/groups", BasicController.groups, named = :groups)
route("/groups", BasicController.groups)
2023-06-24 04:39:41 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale/cooperatives", BasicController.cooperatives, named = :cooperatives)
route("/cooperatives", BasicController.cooperatives)
2023-06-24 04:39:41 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale/communities", BasicController.communities, named = :communities)
route("/communities", BasicController.communities)
2023-06-24 04:39:41 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale/partners", BasicController.partners, named = :partners)
route("/partners", BasicController.partners)
2023-06-26 00:39:06 +07:00
2023-07-03 16:55:46 +07:00
route("/:locale", BasicController.landing, named = :landing)
route("/", BasicController.landing)