Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vertex_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
贾浩@五瓣科技
vertex_api
Commits
bc7ca581
Commit
bc7ca581
authored
Jul 24, 2023
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: typo
parent
1d123c40
Pipeline
#625
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
main.go
main.go
+1
-1
No files found.
README.md
View file @
bc7ca581
...
@@ -3,6 +3,6 @@ curl -X POST http://127.0.0.1:8080/api/v1/subscribe -d '{"email": "12@qq.com"}'
...
@@ -3,6 +3,6 @@ curl -X POST http://127.0.0.1:8080/api/v1/subscribe -d '{"email": "12@qq.com"}'
{"code":0,"error":""}
{"code":0,"error":""}
```
```
```
```
curl -X POST http://127.0.0.1:8080/api/v1/con
ca
t -d '{"email": "12@qq.com", "name": "bob", "message": "testmessage"}'
curl -X POST http://127.0.0.1:8080/api/v1/con
tac
t -d '{"email": "12@qq.com", "name": "bob", "message": "testmessage"}'
{"code":0,"error":""}
{"code":0,"error":""}
```
```
\ No newline at end of file
main.go
View file @
bc7ca581
...
@@ -21,7 +21,7 @@ func main() {
...
@@ -21,7 +21,7 @@ func main() {
e
.
Use
(
cors
.
New
(
_cors
))
e
.
Use
(
cors
.
New
(
_cors
))
e
.
POST
(
"/api/v1/subscribe"
,
userSubscribe
)
e
.
POST
(
"/api/v1/subscribe"
,
userSubscribe
)
e
.
POST
(
"/api/v1/con
ca
t"
,
userContactUs
)
e
.
POST
(
"/api/v1/con
tac
t"
,
userContactUs
)
e
.
Run
(
config
.
Listen
)
e
.
Run
(
config
.
Listen
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment