19 lines
366 B
Go
19 lines
366 B
Go
// Package main is the entry point for the api service.
|
|
package main
|
|
|
|
import (
|
|
"github.com/jordan/test-diag/pkg/app"
|
|
"github.com/jordan/test-diag/services/api/internal/api"
|
|
)
|
|
|
|
func main() {
|
|
// Create application
|
|
application := app.New("api", app.WithDefaultPort(8001))
|
|
|
|
// Register routes
|
|
api.RegisterRoutes(application)
|
|
|
|
// Start server
|
|
application.Run()
|
|
}
|