Separated models, controllers and routers
This commit is contained in:
15
Ajax/Controller.fs
Normal file
15
Ajax/Controller.fs
Normal file
@@ -0,0 +1,15 @@
|
||||
module DredgePos.Ajax.Controller
|
||||
|
||||
open DredgeFramework
|
||||
open language
|
||||
open Giraffe
|
||||
|
||||
let getLanguageVars = ajaxSuccess languageVars
|
||||
|
||||
let getKeyboardLayout (language: string) =
|
||||
let layout = $"""wwwroot/languages/{language}/keyboardLayout.json"""
|
||||
|> GetFileContents
|
||||
map [
|
||||
"status", "success"
|
||||
"data", layout
|
||||
] |> json
|
||||
Reference in New Issue
Block a user