mirror of
https://github.com/efim/go-ssr-pocketbase-oauth-attempt.git
synced 2025-07-02 01:53:34 +00:00
20 lines
368 B
Go
20 lines
368 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/pocketbase/pocketbase"
|
|
"sunshine.industries/auth-pocketbase-attempt/middleware"
|
|
"sunshine.industries/auth-pocketbase-attempt/pages"
|
|
)
|
|
|
|
func main() {
|
|
app := pocketbase.New()
|
|
middleware.AddCookieSessionMiddleware(app)
|
|
pages.AddPageRoutes(app)
|
|
|
|
if err := app.Start(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|