This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page contentType="application/json; charset=UTF-8"%>{"status":"nauth","message":"Not authorized."} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.estatico.newtype.ops._ | |
import io.estatico.newtype.macros.newtype | |
import eu.timepit.refined.api.Refined | |
import doobie.implicits._ | |
import doobie.postgres.implicits._ | |
import doobie.refined.implicits._ | |
/** | |
* Derive a Put (so it can be interpolated in doobie sql expressions) for any newtype backed by a type that is | |
* supported by doobie (e.g. any wrapper of String, UUID, Boolean etc) |