Draft: feat login

This commit is contained in:
2025-09-05 03:59:25 +08:00
parent 6d7074198f
commit bce698a4ed
20 changed files with 593 additions and 83 deletions

View File

@@ -1,9 +1,33 @@
basePath: /
definitions:
models.User:
properties:
password:
type: string
username:
type: string
type: object
info:
contact: {}
license:
name: 0BSD
title: NASAOJ v3
version: "2.0"
paths: {}
title: Intro. to Network Programming Game
version: 0.0.1-alpha
paths:
/auth/register:
post:
consumes:
- application/json
parameters:
- description: query params
in: body
name: request
required: true
schema:
$ref: '#/definitions/models.User'
responses:
"200":
description: OK
"400":
description: Bad Request
swagger: "2.0"