summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/playlib/api/src/RouteCompilerWorkerApi.scala26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/playlib/api/src/RouteCompilerWorkerApi.scala b/contrib/playlib/api/src/RouteCompilerWorkerApi.scala
new file mode 100644
index 00000000..0467b774
--- /dev/null
+++ b/contrib/playlib/api/src/RouteCompilerWorkerApi.scala
@@ -0,0 +1,26 @@
+package mill
+package playlib
+package api
+
+import ammonite.ops.Path
+import mill.api.Result
+import mill.scalalib.api.CompilationResult
+
+
+trait RouteCompilerWorkerApi {
+ def compile(file: Path,
+ additionalImports: Seq[String],
+ forwardsRouter: Boolean,
+ reverseRouter: Boolean,
+ namespaceReverseRouter: Boolean,
+ generatorType:RouteCompilerType,
+ dest: Path)(implicit ctx: mill.api.Ctx):Result[CompilationResult]
+
+
+}
+
+sealed trait RouteCompilerType
+object RouteCompilerType{
+ case object InjectedGenerator extends RouteCompilerType
+ case object StaticGenerator extends RouteCompilerType
+} \ No newline at end of file