aboutsummaryrefslogtreecommitdiff
path: root/src/Sproxy/Application/Access.hs
blob: c2d030917d7878c33c82a9678ac875a6d327f87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{-# LANGUAGE TemplateHaskell #-}

module Sproxy.Application.Access
  ( Inquiry
  , Question(..)
  ) where

import Data.Aeson.TH (defaultOptions, deriveFromJSON)
import Data.HashMap.Strict (HashMap)
import Data.Text (Text)

data Question = Question
  { path :: Text
  , method :: Text
  } deriving (Show)

$(deriveFromJSON defaultOptions ''Question)

type Inquiry = HashMap Text Question