package mdr.pdb.server package static import org.http4s.AuthedRoutes import org.http4s.HttpRoutes class Routes(config: AppConfig): import CustomTapir.* val serverEndpoints: List[ZServerEndpoint[AppEnv, Any]] = List( fileGetServerEndpoint("pdb" / "app")( s"${config.appPath}/index.html" ), filesGetServerEndpoint("pdb")(config.appPath) ) //val routes: AuthedRoutes[AppAuth, AppTask] = // CustomTapir.from(serverEndpoints).toRoutes.local(_.req) val routes: HttpRoutes[AppTask] = CustomTapir.from(serverEndpoints).toRoutes