Initial Commit to Add RestAPI Server to IEC
[iec.git] / src / foundation / api / apiserver / app / tmp / main.go
diff --git a/src/foundation/api/apiserver/app/tmp/main.go b/src/foundation/api/apiserver/app/tmp/main.go
new file mode 100644 (file)
index 0000000..918f1a6
--- /dev/null
@@ -0,0 +1,25 @@
+// GENERATED CODE - DO NOT EDIT
+// This file is the main file for Revel.
+// It registers all the controllers and provides details for the Revel server engine to
+// properly inject parameters directly into the action endpoints.
+package main
+
+import (
+       "flag"
+       "apiserver/app/tmp/run"
+       "github.com/revel/revel"
+)
+
+var (
+       runMode    *string = flag.String("runMode", "", "Run mode.")
+       port       *int    = flag.Int("port", 0, "By default, read from app.conf")
+       importPath *string = flag.String("importPath", "", "Go Import Path for the app.")
+       srcPath    *string = flag.String("srcPath", "", "Path to the source root.")
+
+)
+
+func main() {
+       flag.Parse()
+       revel.Init(*runMode, *importPath, *srcPath)
+       run.Run(*port)
+}