2f7a6b8c45
Now templates go files are in /templates in a templates package. Controllers only have controller files
13 lignes
262 o
Go
13 lignes
262 o
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/NyaaPantsu/nyaa/templates"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// NotFoundHandler : Controller for displaying 404 error page
|
|
func NotFoundHandler(c *gin.Context) {
|
|
templates.HttpError(c, http.StatusNotFound)
|
|
}
|