blob: 656ffe572dfb72eba3b510cfc3fba6fcd6fb393b [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package main
import (
"go.chromium.org/luci/config/server/cfgmodule"
"go.chromium.org/luci/server"
"go.chromium.org/luci/server/gaeemulation"
"go.chromium.org/luci/server/module"
"go.chromium.org/luci/server/router"
"infra/appengine/cros/lab_inventory/app/cron"
"infra/appengine/cros/lab_inventory/app/frontend"
)
func main() {
modules := []module.Module{
gaeemulation.NewModuleFromFlags(),
cfgmodule.NewModuleFromFlags(),
}
server.Main(nil, modules, func(srv *server.Server) error {
frontend.InstallServices(srv.PRPC)
cron.InstallHandlers(srv.Routes, router.MiddlewareChain{})
return nil
})
}