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

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

import Data.Aeson (FromJSON)
import Data.HashMap.Strict (HashMap)
import Data.Text (Text)
import GHC.Generics (Generic)

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

instance FromJSON Question

type Inquiry = HashMap Text Question