Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtrindade committed Sep 7, 2024
1 parent 77d83e0 commit 4f8eb1f
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 68 deletions.
125 changes: 62 additions & 63 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,62 @@
site_name: LunaCrew | Accounts-core
site_description: Accounts Core API - Luna's User Management
site_author: LunaCrew
site_url: https://lunacrew.github.io/accounts-core

repo_name: GitHub
repo_url: https://github.com/LunaCrew/accounts-core

docs_dir: pages
site_dir: site

nav:
- Home: index.md
- API: api.md
- Architecture: architecture.md
- Changelog: changelog.md
- Contribute: contribute.md
- Stacks: stacks.md
- References: references.md

theme:
name: material
icon:
repo: fontawesome/brands/github
admonition:
type: material/alert-circle
logo: assets/luna.png
favicon: assets/luna.png

palette:
# Default color palette
- scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
primary: brown
accent: blue

# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
primary: brown
accent: blue

features:
- navigation.footer
- navigation.top
# - toc.integrate

extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/LunaCrew

markdown_extensions:
- admonition
- attr_list
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
site_name: LunaCrew | Accounts-core
site_description: Accounts Core API - Luna's User Management
site_author: LunaCrew
site_url: https://lunacrew.github.io/accounts-core

repo_name: GitHub
repo_url: https://github.com/LunaCrew/accounts-core

docs_dir: pages
site_dir: site

nav:
- Home: index.md
- API: api.md
- Architecture: architecture.md
- Contribute: contribute.md
- Stacks: stacks.md
- References: references.md

theme:
name: material
icon:
repo: fontawesome/brands/github
admonition:
type: material/alert-circle
logo: assets/luna.png
favicon: assets/luna.png

palette:
# Default color palette
- scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
primary: brown
accent: blue

# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
primary: brown
accent: blue

features:
- navigation.footer
- navigation.top
# - toc.integrate

extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/LunaCrew

markdown_extensions:
- admonition
- attr_list
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
6 changes: 1 addition & 5 deletions src/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ const routes = (app: Application) => {
app
.use(express.json())
.use('/api/docs', swaggerUi.serve, swaggerUi.setup(swaggerFile))
.set('trust proxy', 1)

app
.get('/', (_req: Request, res: Response) => {
res.send({ status: 'API is OK!', docs: '/api/docs' })
})

.set('trust proxy', 1)

.get('/ip', (req: Request, res: Response) => {
res.send(req.ip)
})

.post(
'/api/user',
Expand Down

0 comments on commit 4f8eb1f

Please sign in to comment.