-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (27 loc) · 892 Bytes
/
main.py
File metadata and controls
37 lines (27 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from fastapi import FastAPI
from routers import account, beers, breweries, collections, colors, countries, ratings, servings, styles, top, users
description = """
The API behind [Zythogora](https://zythogora.com).

"""
app = FastAPI(
title = "Zythogora API",
description = description,
version = "0.0.1",
)
app.include_router(account.router)
app.include_router(beers.router)
app.include_router(breweries.router)
app.include_router(collections.router)
app.include_router(colors.router)
app.include_router(countries.router)
app.include_router(ratings.router)
app.include_router(servings.router)
app.include_router(styles.router)
app.include_router(top.router)
app.include_router(users.router)
from config import connection
import atexit
@atexit.register
def close_connection():
connection.close()