diff options
| author | adambrangenberg <adabran06@gmail.com> | 2025-12-07 06:36:43 +0100 |
|---|---|---|
| committer | adambrangenberg <adabran06@gmail.com> | 2025-12-07 06:36:43 +0100 |
| commit | 2b48a574e8b9fed03a5c1969af4bb1e338f1be26 (patch) | |
| tree | f31c92f7788969b034838b8ec0ea7e187a746fc2 /src/Endpoints/VersionsEndpoint.hs | |
| parent | fb14daae9d3bc05a0d18f58875ef54e328081f19 (diff) | |
implemented section 1-3
Diffstat (limited to 'src/Endpoints/VersionsEndpoint.hs')
| -rw-r--r-- | src/Endpoints/VersionsEndpoint.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Endpoints/VersionsEndpoint.hs b/src/Endpoints/VersionsEndpoint.hs new file mode 100644 index 0000000..79fd3ea --- /dev/null +++ b/src/Endpoints/VersionsEndpoint.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE TypeOperators #-} + +module Endpoints.VersionsEndpoint (VersionsAPI, handleVersions) where + +import Servant +import Data.VersionsData + +type VersionsAPI = "_matrix" :> "client" :> "versions" :> Get '[JSON] Versions + +handleVersions :: Handler Versions +handleVersions = return (makeVersions ["1.12"]) |