feat: add simple Oauth2 logic for github
Some checks failed
Backend ci / build (push) Has been cancelled

This commit is contained in:
d3m0k1d
2026-02-10 00:07:29 +03:00
parent c62dd7f421
commit 53d8760912
8 changed files with 109 additions and 18 deletions

View File

@@ -15,6 +15,32 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/callback": {
"get": {
"description": "Callback for oauth2 providers",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Callback for oauth2 providers",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/posts": {
"get": {
"description": "Get all posts",