16 lines
398 B
Go
16 lines
398 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"lingniu/vehicle-data-platform/apps/api/internal/config"
|
|
"lingniu/vehicle-data-platform/apps/api/internal/platform"
|
|
"lingniu/vehicle-data-platform/apps/api/internal/static"
|
|
)
|
|
|
|
func NewServer(cfg config.Config) http.Handler {
|
|
store := platform.NewMockStore()
|
|
api := platform.NewHandler(platform.NewService(store))
|
|
return static.Handler(cfg.StaticDir, api)
|
|
}
|