Skip to content

Sonoro-api : this api, developed for the Sonoro project, manages and serves content requested by users based on their activities in the web application.

License

Notifications You must be signed in to change notification settings

touzand/sonoro-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonoro (server side)

Badge en Desarollo

This is a tiny server only builded for providing static files to the client side of Sonoro. This was build with Python - FastAPI

from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.middleware.cors import CORSMiddleware

app = FastAPI()

origins = ["*"]

app.add_middleware(
    CORSMiddleware,
    allow_origins=origins,
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)

app = FastAPI()
app.mount("/static", StaticFiles(directory="static"), name="static")

About

Sonoro-api : this api, developed for the Sonoro project, manages and serves content requested by users based on their activities in the web application.

Resources

License

Stars

Watchers

Forks

Languages