Maxim Slipenko
733cebfd81
Reviewed-on: https://code.alt-gnome.ru/aides-infra/aides-repo-api/pulls/7 Co-authored-by: Maxim Slipenko <no-reply@maxim.slipenko.com> Co-committed-by: Maxim Slipenko <no-reply@maxim.slipenko.com>
22 lines
454 B
Go
22 lines
454 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/app"
|
|
"code.alt-gnome.ru/aides-infra/aides-repo-api/internal/router"
|
|
)
|
|
|
|
func main() {
|
|
app, err := app.New()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
// Конфигурация сервера
|
|
router := router.New(app).Setup()
|
|
|
|
log.Printf("Сервер запущен на порту: %s", app.Config.Port)
|
|
http.ListenAndServe(":"+app.Config.Port, router)
|
|
}
|