about summary refs log blame commit diff
path: root/users/wpcarro/website/sandbox/learnpianochords/src/server/API.hs
blob: fe3671e7aa3e52522eca75f96b782d91749c22d4 (plain) (tree)
1
2
3
4
5
6




                                                                                
                  






                                                                                


                                                        
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
--------------------------------------------------------------------------------
module API where
--------------------------------------------------------------------------------
import Servant.API

import qualified Types as T
--------------------------------------------------------------------------------

type API = "verify"
           :> ReqBody '[JSON] T.VerifyGoogleSignInRequest
           :> Post '[JSON] NoContent
      :<|> "create-payment-intent"
           :> ReqBody '[JSON] T.PaymentIntent
           :> Post '[JSON] T.CreatePaymentIntentResponse