43 lines
1.1 KiB
Forth
43 lines
1.1 KiB
Forth
/// Handlers for the home page, legal stuff, and help
|
|
module JobsJobsJobs.Home.Handlers
|
|
|
|
open Giraffe
|
|
open JobsJobsJobs.Common.Handlers
|
|
|
|
// GET: /
|
|
let home : HttpHandler =
|
|
renderHandler "Welcome" Views.home
|
|
|
|
// GET: /privacy-policy
|
|
let privacyPolicy : HttpHandler =
|
|
renderHandler "Privacy Policy" Views.privacyPolicy
|
|
|
|
// GET: /terms-of-service
|
|
let termsOfService : HttpHandler =
|
|
renderHandler "Terms of Service" Views.termsOfService
|
|
|
|
// GET: /how-it-works
|
|
let howItWorks : HttpHandler =
|
|
renderHandler "How It Works" Views.Help.index
|
|
|
|
// GET: /how-it-works/accounts
|
|
let accountHelp : HttpHandler =
|
|
renderHandler "How It Works: Accounts" Views.Help.accounts
|
|
|
|
|
|
open Giraffe.EndpointRouting
|
|
|
|
/// All endpoints for this feature
|
|
let endpoints =
|
|
[ GET_HEAD [
|
|
route "/" home
|
|
route "/privacy-policy" privacyPolicy
|
|
route "/terms-of-service" termsOfService
|
|
]
|
|
subRoute "/how-it-works" [
|
|
GET_HEAD [
|
|
route "" howItWorks
|
|
route "/accounts" accountHelp
|
|
]
|
|
]
|
|
] |