feat: update docs, fix repository, full working github callback, fix healthcheck in docker file, update makefile

This commit is contained in:
d3m0k1d
2026-02-12 23:57:58 +03:00
parent bce5ad2f9a
commit d9cf0ade7f
9 changed files with 182 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ definitions:
properties:
content:
type: string
createdAt:
created_at:
type: string
id:
type: integer
@@ -32,21 +32,45 @@ definitions:
info:
contact: {}
paths:
/auth/github:
get:
description: Redirects to GitHub authorization
responses:
"302":
description: Found
summary: Start GitHub OAuth login
tags:
- auth
/callback/github:
get:
consumes:
- application/json
description: Callback for oauth2 providers
description: Exchanges authorization code for access token
parameters:
- description: Authorization code
in: query
name: code
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
description: Access token
schema:
additionalProperties: true
type: object
"400":
description: Missing code
schema:
additionalProperties:
type: string
type: object
summary: Callback for oauth2 providers
"500":
description: Exchange failed
schema:
additionalProperties:
type: string
type: object
summary: GitHub OAuth callback
tags:
- auth
/posts: