@@ -135,13 +135,12 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
135
135
│ ├── middleware
136
136
│ │ └── jwt_auth_middleware.go
137
137
│ └── route
138
- │ └── v1
139
- │ ├── login_route.go
140
- │ ├── profile_route.go
141
- │ ├── refresh_token_route.go
142
- │ ├── route.go
143
- │ ├── signup_route.go
144
- │ └── task_route.go
138
+ │ ├── login_route.go
139
+ │ ├── profile_route.go
140
+ │ ├── refresh_token_route.go
141
+ │ ├── route.go
142
+ │ ├── signup_route.go
143
+ │ └── task_route.go
145
144
├── bootstrap
146
145
│ ├── app.go
147
146
│ ├── database.go
@@ -192,7 +191,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
192
191
- Request
193
192
194
193
```
195
- curl --location --request POST 'http://localhost:8080/v1/ signup' \
194
+ curl --location --request POST 'http://localhost:8080/signup' \
196
195
--data-urlencode '[email protected] ' \
197
196
--data-urlencode 'password=test' \
198
197
--data-urlencode 'name=Test Name'
@@ -212,7 +211,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
212
211
- Request
213
212
214
213
```
215
- curl --location --request POST 'http://localhost:8080/v1/ login' \
214
+ curl --location --request POST 'http://localhost:8080/login' \
216
215
--data-urlencode '[email protected] ' \
217
216
--data-urlencode 'password=test'
218
217
```
@@ -231,7 +230,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
231
230
- Request
232
231
233
232
```
234
- curl --location --request GET 'http://localhost:8080/v1/ profile' \
233
+ curl --location --request GET 'http://localhost:8080/profile' \
235
234
--header 'Authorization: Bearer access_token'
236
235
```
237
236
@@ -249,7 +248,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
249
248
- Request
250
249
251
250
```
252
- curl --location --request POST 'http://localhost:8080/v1/ task' \
251
+ curl --location --request POST 'http://localhost:8080/task' \
253
252
--header 'Authorization: Bearer access_token' \
254
253
--header 'Content-Type: application/x-www-form-urlencoded' \
255
254
--data-urlencode 'title=Test Task'
@@ -268,7 +267,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
268
267
- Request
269
268
270
269
```
271
- curl --location --request GET 'http://localhost:8080/v1/ task' \
270
+ curl --location --request GET 'http://localhost:8080/task' \
272
271
--header 'Authorization: Bearer access_token'
273
272
```
274
273
@@ -290,7 +289,7 @@ Whenever you make changes in the interfaces of these use-cases, repositories, or
290
289
- Request
291
290
292
291
```
293
- curl --location --request POST 'http://localhost:8080/v1/ refresh' \
292
+ curl --location --request POST 'http://localhost:8080/refresh' \
294
293
--header 'Content-Type: application/x-www-form-urlencoded' \
295
294
--data-urlencode 'refreshToken=refresh_token'
296
295
```
0 commit comments