Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ go.work.sum
.env

**/tmp/**
.DS_Store
.DS_Store
examples
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/ThePuffProject/examples

go 1.23.0

require github.com/nikumar1206/puff v0.0.0-20241111183627-cf7fc237db0f
require github.com/ThePuffProject/puff v0.0.0-20241111192831-55e1f4ffe235

require (
github.com/google/uuid v1.6.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/ThePuffProject/puff v0.0.0-20241111192831-55e1f4ffe235 h1:kjG4LPjRmsUe8mIyBNPyxZLdY04319g6CDklUwl3Yu0=
github.com/ThePuffProject/puff v0.0.0-20241111192831-55e1f4ffe235/go.mod h1:xH3cWmT8LriDDwIrABkJdJL9cNLyXbfI7wt8iXtsuQk=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/nikumar1206/puff v0.0.0-20241111183627-cf7fc237db0f h1:fPiT8A95DGYXOoT1fSf3k9d7D1y6/LpBhDwKXyDTETA=
github.com/nikumar1206/puff v0.0.0-20241111183627-cf7fc237db0f/go.mod h1:IGKW9veaL+cGX4dIS0rq1HcfQYHjqeldjbrkBskswHM=
nhooyr.io/websocket v1.8.17 h1:KEVeLJkUywCKVsnLIDlD/5gtayKp8VoCkksHCGGfT9Y=
nhooyr.io/websocket v1.8.17/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=
4 changes: 2 additions & 2 deletions restaurant_app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"time"

"github.com/ThePuffProject/examples/restaurant_app/routes"
"github.com/nikumar1206/puff"
"github.com/nikumar1206/puff/middleware"
"github.com/ThePuffProject/puff"
"github.com/ThePuffProject/puff/middleware"
)

type User struct {
Expand Down
2 changes: 1 addition & 1 deletion restaurant_app/pasta.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/nikumar1206/puff"
"github.com/ThePuffProject/puff"
)

type PastaHomeInput struct {
Expand Down
2 changes: 1 addition & 1 deletion restaurant_app/routes/drinks.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package routes

import (
"github.com/nikumar1206/puff"
"github.com/ThePuffProject/puff"
)

type EchoInput struct {
Expand Down
2 changes: 1 addition & 1 deletion restaurant_app/routes/pizza.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"time"

"github.com/nikumar1206/puff"
"github.com/ThePuffProject/puff"
)

type PizzaResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions restaurant_app/routes/soda.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package routes

import (
"github.com/nikumar1206/puff"
"github.com/nikumar1206/puff/middleware"
"github.com/ThePuffProject/puff"
"github.com/ThePuffProject/puff/middleware"
)

type OrderSodaInput struct {
Expand Down
2 changes: 1 addition & 1 deletion restaurant_app/routes/water.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package routes

import "github.com/nikumar1206/puff"
import "github.com/ThePuffProject/puff"

func WaterRouter() *puff.Router {
r := puff.NewRouter("Water", "/water")
Expand Down