An open API service indexing awesome lists of open source software.

https://github.com/mandrigin/gin-spa

A simple SPA serving for gin-gonic
https://github.com/mandrigin/gin-spa

Last synced: about 1 year ago
JSON representation

A simple SPA serving for gin-gonic

Awesome Lists containing this project

README

          

# gin-spa
A simple SPA (single-page application) serving for gin-gonic.

## Usage

```go
package main

import (
"github.com/gin-gonic/gin"
"github.com/mandrigin/gin-spa/spa"
)

func main() {
r := gin.Default()
r.Use(spa.Middleware("/", "./static/spa")) // your build of React or other SPA
r.Run()
}
```