aceberg/WatchYourPorts

View on GitHub
internal/web/index.go

Summary

Maintainability
A
0 mins
Test Coverage
package web

import (
    "net/http"

    "github.com/gin-gonic/gin"

    "github.com/aceberg/WatchYourPorts/internal/models"
)

func indexHandler(c *gin.Context) {
    var guiData models.GuiData
    guiData.Config = appConfig

    c.HTML(http.StatusOK, "header.html", guiData)
    c.HTML(http.StatusOK, "index.html", guiData)
}